#include #define rep(i,a,b) for(int i = (a); i < (b); i++) #define all(A) (A).begin(),(A).end() #define MOD 1000000007 using namespace std; using ll = long long; using Graph = vector>; int main() { int l,m,n; cin >> l >> m >> n; int total = l*100+m*25+n,ans = 0; ans += total/100; total /= 100; ans += total/25; total /= 25; cout << ans+total; }