#import int main(){ int a,b,c; int sum = 0; int ans = 0; scanf("%d",&a); scanf("%d",&b); scanf("%d",&c); sum = a * 100 + b * 25 + c; sum = sum % 1000; ans += (sum / 100); sum = sum % 100; ans += (sum / 25); sum = sum % 25; ans += sum; printf("%d",ans); return 0; }