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



if n < 10:

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

else:

    print(r)
import sys



sys.setrecursionlimit(10 ** 7)

input = sys.stdin.readline

f_inf = float('inf')

mod = 10 ** 9 + 7





def resolve():

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

    diff = 100 * (max(0, 10 - n))

    print((r + diff))



if __name__ == '__main__':

    resolve()

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

import sys

sys.setrecursionlimit(10**7)
input = sys.stdin.readline
f_inf = float("inf")
mod = 10**9 + 7


def resolve():
    n, r = list(map(int, input().split()))
    diff = 100 * (max(0, 10 - n))
    print((r + diff))


if __name__ == "__main__":
    resolve()

-n, r = list(map(int, input().split())) -if n < 10: -    print((r + 100 * (10 - n))) -else: -    print(r) +import sys + +sys.setrecursionlimit(10**7) +input = sys.stdin.readline +f_inf = float("inf") +mod = 10**9 + 7 + + +def resolve(): +    n, r = list(map(int, input().split())) +    diff = 100 * (max(0, 10 - n)) +    print((r + diff)) + + +if __name__ == "__main__": +    resolve()