import java.util.Scanner; public class Answer { public static void main(String str[]) { Scanner sc = new Scanner(System.in); int num_100 = Integer.valueOf(sc.nextLine()); int num_25 = Integer.valueOf(sc.nextLine()); int num_1 = Integer.valueOf(sc.nextLine()); int sum = 0; num_1 = num_1 % 25; num_25 += num_1 / 25; num_25 = num_25 % 4; num_100 += num_25 / 4; num_100 = num_100 % 10; sum = num_1 + num_25 + num_100; System.out.println(sum); } }