package test1; import java.util.Scanner; import java.util.regex.Pattern; import java.util.regex.Matcher; public class test1_class { public static void main(String[] args) { // 標準入力から読み込む際に、Scannerオブジェクトを使う。 Scanner sc = new Scanner(System.in); int c1000 = 0; int c100 = sc.nextInt(); int c25 = sc.nextInt(); int c1 = sc.nextInt(); c25 = c25 + c1/25; c1 = c1%25; c100 = c100 + c25/4; c25 = c25%4; c1000 = c1000 + c100/10; c100 = c100%10; System.out.print(c1+c25+c100 + "\n"); } }