n,r = map(int, input().split())
print(r if 10<=n else (r+100*(10-n))) n,r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r print(r if 10<=n else (r+100*(10-n))) print r if 10<=n else (r+100*(10-n)) 10<=n 10 n r r+100*(10-n) r 100*(10-n) 100 10-n 10 n n,r = map(int, input().split()) map(int, input().split()) n r = map(int, input().split()) map(int, input().split()) r
n,r = map(int, input().split())
print(r if 10<=n else (r+100*(10-n)))