提交时间:2025-06-24 16:10:25

运行 ID: 57852

n=int(input()) x=input() ans=8 if x=="y": ans=ans+5 if n>1000: ans=ans+(n-1000+499)//500*4 print(ans)