import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); //ここから処理開始 int K = 0; int L = sc.nextInt(); int M = sc.nextInt(); int N = sc.nextInt(); if(N/25>0){ M += N/25; N = N%25; } if(M/4>0){ L += M/4; M = M%4; } if(L/10>0){ K += L/10; L = L%10; } System.out.print(L+M+N); //ここまで sc.close(); } }