N, R = list(map(int, input().rstrip().split()))
D = R
if N < 10:
    v = 100 * (10 - N)
    # R = X - v
    D = R + v

print(D)
 N, R = list(map(int, input().rstrip().split())) N list(map(int, input().rstrip().split())) list map(int, input().rstrip().split()) map int input().rstrip().split() ().rstrip().split ().rstrip() ().rstrip () input rstrip split R D = R D R if N < 10:
    v = 100 * (10 - N)
    # R = X - v
    D = R + v N < 10 N 10 v = 100 * (10 - N) v 100 * (10 - N) 100 10 - N 10 N D = R + v D R + v R v print(D) print D R = list(map(int, input().rstrip().split())) list(map(int, input().rstrip().split())) R D = R R D N, R = list(map(int, input().rstrip().split())) list(map(int, input().rstrip().split())) N v = 100 * (10 - N) 100 * (10 - N) v D = R + v R + v D
N, R = list(map(int, input().rstrip().split()))
D = R
if N < 10:
    v = 100 * (10 - N)
    # R = X - v
    D = R + v

print(D)

