n, r = list(map(int, input().split()))



if n >= 10:

    print(r)

else:

    print((r + 100*(10-n)))

import sys



stdin = sys.stdin



ni = lambda: int(ns())

ns = lambda: stdin.readline().rstrip()

na = lambda: list(map(int, stdin.readline().split()))



# code here

N, R = na()





if N >= 10:

    print(R)

else:

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

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

import sys

stdin = sys.stdin
ni = lambda: int(ns())
ns = lambda: stdin.readline().rstrip()
na = lambda: list(map(int, stdin.readline().split()))
# code here
N, R = na()
if N >= 10:
    print(R)
else:
    print((R + 100 * (10 - N)))

-n, r = list(map(int, input().split())) -if n >= 10: -    print(r) +import sys + +stdin = sys.stdin +ni = lambda: int(ns()) +ns = lambda: stdin.readline().rstrip() +na = lambda: list(map(int, stdin.readline().split())) +# code here +N, R = na() +if N >= 10: +    print(R) -    print((r + 100 * (10 - n))) +    print((R + 100 * (10 - N)))