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)) import sys sys stdin = sys.stdin stdin sys.stdin sys stdin ni = lambda: int(ns()) ni lambda: int(ns()) int(ns()) int ns() ns ns = lambda: stdin.readline().rstrip() ns lambda: stdin.readline().rstrip() stdin.readline().rstrip() stdin.readline().rstrip stdin.readline() stdin.readline stdin readline rstrip na = lambda: list(map(int, stdin.readline().split())) na lambda: list(map(int, stdin.readline().split())) list(map(int, stdin.readline().split())) list map(int, stdin.readline().split()) map int stdin.readline().split() stdin.readline().split stdin.readline() stdin.readline stdin readline split N, R = na() N na() na R if N >= 10:
    print(R)
else:
    print(R + 100*(10-N)) N >= 10 N 10 print(R) print R print(R + 100*(10-N)) print R + 100*(10-N) R 100*(10-N) 100 10-N 10 N ns = lambda: stdin.readline().rstrip() lambda: stdin.readline().rstrip() ns N, R = na() na() N na = lambda: list(map(int, stdin.readline().split())) lambda: list(map(int, stdin.readline().split())) na ni = lambda: int(ns()) lambda: int(ns()) ni stdin = sys.stdin sys.stdin stdin R = na() na() 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)
else:
    print(R + 100*(10-N))
