#include #include #include #include #include #include using namespace std; #define diff(x,y) ((x > y) ? (x - y) : (y - x)) int main() { int l, m, n; cin >> l >> m >> n; m += n / 25; n %= 25; l += m / 4; m %= 4; l %= 10; //cout << l << " " << m << " "<< n << endl; cout << l + m + n << endl; }