Run ID:146263
提交时间:2026-01-27 14:55:59
x,n=map(int,input().split()) m=0 for i in range(n%7): if 0<(x+i)%7<=5: m+=1 sum=(n//7*5+m)*250 print(sum)