N, R = map(int, input().split())

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

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