import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int x = a * 100; int y = b * 25; int z = c * 1; int total = x + y + z; int total1000 = total / 1000; int total100 = total % 1000 / 100; int total25 = total % 1000 % 100 / 25; int total1 = total % 1000 % 100 % 25 / 1; System.out.println(total1000+ total100 + total25 + total1); } }