#include int main(){ int L, M, N; scanf("%d %d %d", &L, &M, &N); M += L / 25; L %= 25; N += M / 4; M %= 4; N %= 10; printf("%d\n", L + M + N); }