import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); //ここから処理開始 int L = sc.nextInt(); int M = sc.nextInt(); int N = sc.nextInt(); int O = N / 25; int P = (O + M) / 4; int Q = (P + L) / 10; System.out.println(N % 25 + (O + M) % 4 + (P + L) % 10); //ここまで sc.close(); } }