import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); //System.out.println("100円硬貨の枚数"); int L = scanner.nextInt(); //System.out.println("25円硬貨の枚数"); int M = scanner.nextInt(); //System.out.println("1円硬貨の枚数"); int N = scanner.nextInt(); scanner.close(); int a = 100; int b = 25; int c = 1000; int sum = L*a+M*b+N; //貯金箱の金額 int k = 0; //お札の枚数 int l, m, n = 0; k = sum / c; int coin_sum = 0; //硬貨の金額の合計 coin_sum = sum - k*c; l = coin_sum / a; coin_sum = coin_sum - a*l; m = coin_sum / b; coin_sum = coin_sum - b*m; n = coin_sum; int num_coin = l + m + n; System.out.println(num_coin); } }