import java.util.Scanner; public class No_32 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int _100coins = sc.nextInt(); int _25coins = sc.nextInt(); int _1coins = sc.nextInt(); _25coins += (_1coins / 25); _1coins %= 25; _100coins += (_25coins / 4); _25coins %= 4; _100coins %= 10; int sumCoins = _1coins + _25coins + _100coins; System.out.println(sumCoins); sc.close(); } }