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