Run ID:146264

提交时间:2026-01-27 14:58:05

x,n=map(int,input().split()) z=n+x if z>=7: a=z//7 b=a*5*250+z%7*250-(x-1)*250 print(b) else: print((n-x)*250)