#include using namespace std; const int COINNUM = 3; const int p[COINNUM] = {100,25,1}; int main(){ int total = 0, res = 0; for(int i = 0; i < COINNUM; i++){ int coin; cin >> coin; total += p[i] * coin; } total %= 1000; for(int i = 0; i < COINNUM; i++){ res += total / p[i]; total %= p[i]; } cout << res << endl; }