month = input() nights = int(input()) studio_price = 0 apartment_price = 0 if month == "May" or month == "October": studio_price = nights * 50 apartment_price = nights * 65 if 7 < nights <= 14: studio_price = 0.95 * studio_price elif nights > 14: studio_price = 0.7 * studio_price apartment_price = 0.9 * apartment_price elif month == "June" or month == "September": studio_price = nights * 75.20 apartment_price = nights * 68.70 if nights > 14: studio_price = 0.8 * studio_price apartment_price = 0.9 * apartment_price # before change: apartment_price = 0.9*studio_price elif month == "July" or month == "August": studio_price = nights * 76 apartment_price = nights * 77 if nights > 14: apartment_price = 0.9 * apartment_price print(f"Apartment:{apartment_price: .2f} lv.") print(f"Studio:{studio_price: .2f} lv.")