package yukicoder; import java.util.Scanner; public class No_032 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int L = sc.nextInt(); int M = sc.nextInt(); int N = sc.nextInt(); sc.close(); int tmp = N / 25; N -= tmp * 25; M += tmp; tmp = 0; tmp = M / 4; M -= tmp * 4; L += tmp; tmp = 0; tmp = L / 10; L -= tmp * 10; System.out.println(L + M + N); } }