#include using namespace std; #define ll long long #define endl "\n" int main() { int l, m, n; cin >> l >> m >> n; m += n / 25; n %= 25; l += m / 4; m %= 4; cout << l % 10 + m + n << endl; return 0; }