#include #define FOR(i,a,b) for(int i = (a); i < (b); ++i) #define REP(i,n) FOR(i,0,n) using namespace std; int main() { int l, m, n, ans; cin >> l >> m >> n; ans = (l * 100 + m * 25 + n) % 1000; cout << ans / 100 + ans % 100 << endl; return 0; }