budget = int(input())
season = input()
fisherman = int(input())
boat_price = 0
if season == "Spring":
boat_price = 3000
elif season == "Summer":
boat_price = 4200
elif season == "Autumn":
boat_price = 4200
elif season == "Winter":
boat_price = 2600
if fisherman <= 6:
boat_price -= boat_price * 0.1
elif 7 <= fisherman <= 11:
boat_price -= boat_price * 0.15
elif fisherman >= 12:
boat_price -= boat_price * 0.25
if season != "Autumn":
if fisherman % 2 == 0:
boat_price -= boat_price * 0.05
if budget >= boat_price:
print(f"Yes! You have {budget - boat_price:.2f} leva left.")
else:
print(f"Not enough money! You need {boat_price - budget:.2f} leva.")