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

if N >= 10:

    print(R)

else:

    print((R+(100*(10-N))))
N, R= list(map(int, input().split()))



if N <= 10:

    print((R+(100*(10-N))))

else:

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

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

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