import java.util.Scanner; import java.util.ArrayList; import java.lang.String; import java.lang.Integer; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); Integer _1000 = 0; Integer _100 = sc.nextInt(); Integer _25 = sc.nextInt(); Integer _1 = sc.nextInt(); int bSum = _1 + _25*25 + _100*100; int count = 0; if (_1/25 > 0){ _25 += _1/25; _1 = _1%25; } if (_25/4 > 0 ){ _100 += _25/4; _25 = _25%4; } if (_100/10 > 0){ _1000 += _100/10; _100 = _100%10; } int aSum = _1 + _25*25 + _100*100 + _1000 * 1000; if (aSum != bSum) { System.out.println("!"); } count = _1 + _25 + _100; System.out.println(count); } }