price,month,day,ticket = map(float, input().split(' ')) if int(month)==11: cost = price*0.7 - ticket*50 if cost<0: cost = 0 print(f'{cost:.2f}') else:  ...