import java.util.ArrayDeque; import java.util.Arrays; import java.util.Queue; import java.util.Scanner; public class Main { private int a; private int b; private int c; public void setA(int a){ this.a = a; } public void setB(int b){ this.b = b; } public void setC(int c){ this.c = c; } public int ans(){ b += a / 25; a = a % 25; c += b / 4; b = b % 4; c = c % 10; return a + b + c; } public static void main(String[] args) { Scanner sc = new Scanner(System.in); Main m = new Main(); int c = sc.nextInt(); int b = sc.nextInt(); int a = sc.nextInt(); m.setA(a); m.setB(b); m.setC(c); System.out.println(m.ans()); } }