n, r = map(int, input().split())

ans = r + (10 - min(n, 10)) * 100

print(ans) n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r ans = r + (10 - min(n, 10)) * 100 ans r + (10 - min(n, 10)) * 100 r (10 - min(n, 10)) * 100 10 - min(n, 10) 10 min(n, 10) min n 10 100 print(ans) print ans r = map(int, input().split()) map(int, input().split()) r ans = r + (10 - min(n, 10)) * 100 r + (10 - min(n, 10)) * 100 ans n, r = map(int, input().split()) map(int, input().split()) n
n, r = map(int, input().split())

ans = r + (10 - min(n, 10)) * 100

print(ans)
