import java.util.Scanner; public class No00000032_Main2 { 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 nn = n / 25; int mm = 25 * (m + nn); System.out.println((((100 * (l + mm / 100)) % 1000) / 100) + ((mm % 100) / 25) + (n % 25)); scan.close(); } }