#include using namespace std; int main() { int x, y, z; cin >> x >> y >> z; //x100,y25,z1 y = y + (z / 25); x = x + (y / 4); cout << (x % 10 + y % 4 + z % 25) << endl; return 0; }