import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int l = Integer.parseInt(scanner.next()); int m = Integer.parseInt(scanner.next()); int n = Integer.parseInt(scanner.next()); int total = (l + m + n); int count = 0; count += (total % 1000) / 100; count += (total % 100) / 25; count += (total % 25); System.out.println(count); } }