import java.util.Scanner; public class TaskK { public static void main(String[] args) { Scanner cin = new Scanner(System.in); int a = cin.nextInt(); int b = cin.nextInt(); int c = cin.nextInt(); int d = 0; b += c / 25; c %= 25; a += b / 4; b %= 4; d += a / 10; a %= 10; System.out.println(a + b + c); } }