import java.util.Scanner; public class No32 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int L = scan.nextInt(); int M = scan.nextInt(); int N = scan.nextInt(); int sum = 100 * L + 25 * M + 1 * N; int maisu1 = sum % 1000; int maisu2 = maisu1 / 100; int maisu3 = (maisu1 % 100) / 25; int maisu4 = (maisu1 % 100) % 25; int maisu = maisu2 + maisu3 + maisu4; System.out.println(maisu); scan.close(); } }