#include <iostream>
#include <iomanip>

using namespace std;

int main()
{
   const int PENNIES_PER_DOLLAR = 100;
   const int PENNIES_PER_QUARTER = 25;

   cout << "Wprowadź nominał banknotu (1 = banknot 1 dol., 5 = 5 dol. itd.): ";
   int bill_value;
   cin >> bill_value;
   cout << "Wprowadź cenę artykułu w centach: ";
   int item_price;
   cin >> item_price;

   int change_due = PENNIES_PER_DOLLAR * bill_value - item_price;
   int dollar_coins = change_due / PENNIES_PER_DOLLAR;
   change_due = change_due % PENNIES_PER_DOLLAR;
   int quarters = change_due / PENNIES_PER_QUARTER;

   cout << "Jednodolarówki:  " << setw(6) << dollar_coins << endl
      << "Ćwierćdolarówki: " << setw(6) << quarters << endl;
      
   return 0;
}

