# coding:utf-8 L, M, N = [int(input()) for i in range(3)] L_m = L * 100 # 100 * 7 M_m = M * 25 # 25 * 20 N_m = N * 1 # 1 * 10 def o_Tw(o): a = o // 25 return a def tW_oH(q): b = (q + L_m) // 100 return b def oH_tH(r): c = r // 1000 return c ansA = o_Tw(N_m) ansB = tW_oH(M_m) ansC = oH_tH(L_m) print(ansA + ansB + ansC)