#include using namespace std; int l,m,n; int main(){ cin>>l>>m>>n; while(n>=25){n-=25; m++;} while(m>=4){m-=4; l++;} while(l>=10)l-=10; cout<