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 x1000 = total % 1000; int total100 = x1000 / 100; int total25 = x1000 % 100 / 25; int total1 = x1000 % 100 % 25 / 1; System.out.println(total100 + total25 + total1); } }