/** * author: boutarou * created: 02.08.2020 11:15:50 **/ #include using namespace std; #define rep(i,n) for(int i = 0; i < int(n); i++) using ll = long long; using P = pair; int main() { int a, b, c, d; a = 0; cin >> b >> c >> d; c += d / 25; d %= 25; b += c / 4; c %= 4; a += b / 10; b %= 10; cout << b + c + d << endl; return 0; }