/* No.32 貯金箱の憂鬱 https://yukicoder.me/problems/no/32 */ #include using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int high, middle, low; cin >> high >> middle >> low; middle += (low / 25); low %= 25; high += (middle / 4); middle %= 4; high %= 10; cout << (low + middle + high) << endl; }