n = int(input('请输入购买数量:')) price = 50 total = n * price if n == 2: total = total * 0.9 elif n == 3: total = total * 0.8 elif n >= 4: total = total * 0.6 print("应付金额:%.2f" % total)