puzzle = 2.60 doll = 3.00 bear = 4.10 minion = 8.20 truck = 2.00 price_of_the_excursion = float(input()) puzzle_count = int(input()) doll_count = int(input()) bear_count = int(input()) minion_count = int(input()) truck_count = int(input()) total_sum = (puzzle * puzzle_count) + (doll_count * doll) + (bear * bear_count) + (minion_count * minion) + (truck_count * truck) total_count = puzzle_count + doll_count + bear_count + minion_count + truck_count if total_count > 50: total_sum = total_sum - (total_sum * 0.25) total_sum = total_sum - (total_sum * 0.1) diff = abs(price_of_the_excursion - total_sum) if price_of_the_excursion <= total_sum: print(f"Yes!{diff:2f} lv left") else: print(f"Not enough money!!{diff:2f} lv needed")