import java.util.Scanner; class Tyokinbako{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int d = (c / 25 + b) * 25 / 100; int e = (d + a) * 100 / 1000; int sum = c % 25 + (((c / 25 + b) * 25) % 100) / 25 + (((d + a) * 100) % 1000) / 100; System.out.println(sum); } }