import java.util.Arrays; import java.util.Scanner; public class sort{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int i = sc.nextInt(); int j = sc.nextInt(); int k = sc.nextInt(); int j_kuriage = 0; int k_kuriage= 0; int i_total = 0; int j_total = 0; int k_total = 0; k_kuriage = k/25; k_total = k%25; j_kuriage = (j + k_kuriage)/4; j_total = (j + k_kuriage)%4; i_total = (i + j_kuriage)%10; System.out.println(i_total+j_total+k_total); sc.close(); } }