def main(): l = int(input().rstrip()) m = int(input().rstrip()) n = int(input().rstrip()) sum = int(100 * l + 25 * m + n) thousands = 0 hundreds = 0 quarters = 0 dimes = 0 if sum >= 1000: thousands = int(sum / 1000) sum = sum - 1000 * thousands print(f"1000円台の処理後は{sum}円です") if sum >= 100: hundreds = int(sum / 100) sum = sum - 100 * hundreds print(f"100円台の処理後は{sum}円です") if sum >= 25: quarters = int(sum / 25) sum = sum - 25 * quarters print(f"25円台の処理後は{sum}円です") sum_coins = int(hundreds + quarters + dimes + sum) print(sum_coins) if __name__ == "__main__": main()