Run ID:146262
提交时间:2026-01-27 14:55:21
x,n=map(int,input().split()) z=n+x if z>=7: a=z//7 b=a*5*250+z%7*250-x*250 print(b) else: print((n-x)*250)