#include using namespace std; int main(){ int a; cin >> a; int b; cin >> b; int c; cin >> c; int d,e,f,g,h,i,j,k; d = c+(25*b)+(100*a); e = d/1000; f = d-1000*e; g = f/100; h = f-100*g; i = h/25; j = h-i; k = g+i+j; cout << k << endl; return 0; }