#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
   const int FIRST_CLASS_STAMP_PRICE = 47; // Cena w centach

   cout << "Wprowadź liczbę dolarów: ";
   int dollars; 
   cin >> dollars;

   int first_class_stamps = 100 * dollars / FIRST_CLASS_STAMP_PRICE;
   int penny_stamps = 100 * dollars - first_class_stamps 
      * FIRST_CLASS_STAMP_PRICE;
   cout << "Znaczki na listy priorytetowe: " << setw(6) << first_class_stamps << endl
        << "Znaczki jednocentowe:          " << setw(6) << penny_stamps << endl;

   return 0;
}

