#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int l,m,n; cin >> l >> m >> n; int sum = l*100+m*25+n; sum %= 1000; int cnt = 0; if(sum >= 100) { cnt += sum/100; sum %= 100; } if(sum >= 25){ cnt += sum/25; sum %= 25; } cnt += sum; cout << cnt << endl; return 0; }