# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

N, R = lr()
answer = R
if N < 10:
    answer += (10-N) * 100
print(answer) import sys sys sr = lambda: sys.stdin.readline().rstrip() sr lambda: sys.stdin.readline().rstrip() sys.stdin.readline().rstrip() sys.stdin.readline().rstrip sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline rstrip ir = lambda: int(sr()) ir lambda: int(sr()) int(sr()) int sr() sr lr = lambda: list(map(int, sr().split())) lr lambda: list(map(int, sr().split())) list(map(int, sr().split())) list map(int, sr().split()) map int sr().split() ().split () sr split N, R = lr() N lr() lr R answer = R answer R if N < 10:
    answer += (10-N) * 100 N < 10 N 10 answer += (10-N) * 100 answer (10-N) * 100 10-N 10 N 100 print(answer) print answer R = lr() lr() R answer += (10-N) * 100 (10-N) * 100 answer sr = lambda: sys.stdin.readline().rstrip() lambda: sys.stdin.readline().rstrip() sr ir = lambda: int(sr()) lambda: int(sr()) ir N, R = lr() lr() N answer = R R answer lr = lambda: list(map(int, sr().split())) lambda: list(map(int, sr().split())) lr
# coding: utf-8
import sys

sr = lambda: sys.stdin.readline().rstrip()
ir = lambda: int(sr())
lr = lambda: list(map(int, sr().split()))

N, R = lr()
answer = R
if N < 10:
    answer += (10-N) * 100
print(answer)
