提交时间:2024-12-24 15:10:03

运行 ID: 50542

a=int(input()) b=input() c=0 while a>1000: a=a-500 c=c+4 if b=="n": b=0 else: b=5 print(8+c+b)