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