import java.util.Scanner; public class No00000032_Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int l = scan.nextInt(); int m = scan.nextInt(); int n = scan.nextInt(); System.out.println((((100 * (l + (25 * (m + (n / 25))) / 100)) % 1000) / 100) + (((25 * (m + (n / 25))) % 100) / 25) + (n % 25)); scan.close(); } }