N, R = [int(s) for s in input().split()]

r = R
if N < 10:
    r += 100 * (10 - N)
print(r) int(s) for s in input().split() for s in input().split() s input().split() ().split () input split for s in input().split() int(s) int s N, R = [int(s) for s in input().split()] N [int(s) for s in input().split()] R r = R r R if N < 10:
    r += 100 * (10 - N) N < 10 N 10 r += 100 * (10 - N) r 100 * (10 - N) 100 10 - N 10 N print(r) print r r = R R r R = [int(s) for s in input().split()] [int(s) for s in input().split()] R N, R = [int(s) for s in input().split()] [int(s) for s in input().split()] N r += 100 * (10 - N) 100 * (10 - N) r
N, R = [int(s) for s in input().split()]

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