#include using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) int main() { int l,m,n; cin>>l>>m>>n; m+=n/25; n=n%25; l+=m/4; m=m%4; l=l%10; cout<