KiKi非常喜欢网购,在一家店铺他看中了一件衣服,他了解到,如果今天是“双11”(11月11日)则这件衣服打7折,“双12” (12月12日)则这件衣服打8折,如果有优惠券可以额外减50元(优惠券只能在双11或双12使用),求KiKi最终所花的钱数。
数据范围:衣服价格满足 
一行,四个数字,第一个数表示小明看中的衣服价格,第二和第三个整数分别表示当天的月份、当天的日期、第四个整数表示是否有优惠券(有优惠券用1表示,无优惠券用0表示)。 注:输入日期保证只有“双11”和“双12”。
一行,小明实际花的钱数(保留两位小数)。(提示:不要指望商家倒找你钱)
1000.0 11 11 1
650.00
999.8 12 12 0
799.84
66.6 11 11 1
0.00
list1 = input().split(" ")
price = float(list1[0])
month = int(list1[1])
data = int(list1[2])
coupon = bool(int(list1[-1]))
if month == 11 and data == 11:
price = price * 0.7
if coupon:
if price > 50:
print("{:.2f}".format(price - 50))
else:
print("0.00")
else:
print("{:.2f}".format(price))
elif month == 12 and data == 12:
price = price * 0.8
if coupon:
if price > 50:
print("{:.2f}".format(price - 50))
else:
print("0.00")
else:
print("{:.2f}".format(price))
else:
print("{:.2f}".format(price))