#include #include using namespace std; int main(){ int a,b,c;scanf("%d%d%d",&a,&b,&c); b+=c/25; c%=25; a+=b/4; b%=4; a%=10; printf("%d\n",a+b+c); }