import java.util.Arrays; import java.util.Iterator; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int L = in.nextInt(); int M = in.nextInt(); int N = in.nextInt(); int K = 0; M += N / 25; N = N % 25; L += M / 4; M = M % 4; K += L / 10; L = L % 10; System.out.println(L+M+N); } }