#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include #include #include #include #include #include #include #include #include #include #include #include #define INF 1050000000 using namespace std; int main(void) { int l, m, n; int sum; int cnt = 0; cin >> l >> m >> n; sum = l * 100 + 25 * m + n; sum %= 1000; cnt += sum / 100; sum %= 100; cnt += sum / 25; sum %= 25; cnt += sum; cout << cnt << endl; }