N, R = list(map(int, input().split()))
if N < 10:
    print(R + 1000 - 100*N)
else:
    print(R) N, R = list(map(int, input().split())) N list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split R if N < 10:
    print(R + 1000 - 100*N)
else:
    print(R) N < 10 N 10 print(R + 1000 - 100*N) print R + 1000 - 100*N R + 1000 R 1000 100*N 100 N print(R) print R N, R = list(map(int, input().split())) list(map(int, input().split())) N R = list(map(int, input().split())) list(map(int, input().split())) R
N, R = list(map(int, input().split()))
if N < 10:
    print(R + 1000 - 100*N)
else:
    print(R)