i = list(map(int, input().split()))
N = i[0]
R = i[1]

if N <= 10:
    print(R + (100*(10 - N)))
else:
    print(R) i = list(map(int, input().split())) i list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split N = i[0] N i[0] i 0 R = i[1] R i[1] i 1 if N <= 10:
    print(R + (100*(10 - N)))
else:
    print(R) N <= 10 N 10 print(R + (100*(10 - N))) print R + (100*(10 - N)) R 100*(10 - N) 100 10 - N 10 N print(R) print R R = i[1] i[1] R i = list(map(int, input().split())) list(map(int, input().split())) i N = i[0] i[0] N
i = list(map(int, input().split()))
N = i[0]
R = i[1]

if N <= 10:
    print(R + (100*(10 - N)))
else:
    print(R)