excursionPrice = float(input()) puzzles = int(input()) talkingDolls = int(input()) bears = int(input()) minions = int(input()) trucks = int(input()) finalProfit = 0 totalPuzzles = puzzles * 2.60 totalTalkingDolls = talkingDolls * 3 totalBears = bears * 4.10 totalMinions = minions * 8.20 totalTrucks = trucks * 2 totalOrder = puzzles + talkingDolls + bears + minions + trucks totalSale = totalPuzzles + totalTalkingDolls + totalBears + totalMinions + totalTrucks if totalOrder >= 50: discount = totalSale - (totalSale*0.25) rent = discount*0.1 finalProfit = discount - rent if finalProfit >= excursionPrice: sumLeft = finalProfit - excursionPrice print(f'Yes! {sumLeft:.2f} lv left.') else: rent = totalSale*0.1 neededAmount = excursionPrice - (totalSale - rent) print(f'Not enough money! {neededAmount:.2f} lv needed.')