package net.ipipip0129.yukicoder.no32; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int yen100 = Integer.parseInt(scan.nextLine()); int yen25 = Integer.parseInt(scan.nextLine()); int yen1 = Integer.parseInt(scan.nextLine()); yen25 += (int) yen1/25; yen1 %= 25; yen100 += (int) yen25/4; yen25 %= 4; yen100 %= 10; System.out.println(yen1 + yen25 + yen100); } }