import sys
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()


n,r = na()

print(r+max(0,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 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 nn = lambda: list(stdin.readline().split()) nn lambda: list(stdin.readline().split()) list(stdin.readline().split()) list stdin.readline().split() stdin.readline().split stdin.readline() stdin.readline stdin readline split ns = lambda: stdin.readline().rstrip() ns lambda: stdin.readline().rstrip() stdin.readline().rstrip() stdin.readline().rstrip stdin.readline() stdin.readline stdin readline rstrip n,r = na() n na() na r print(r+max(0,100*(10-n))) print r+max(0,100*(10-n)) r max(0,100*(10-n)) max 0 100*(10-n) 100 10-n 10 n r = na() na() r nn = lambda: list(stdin.readline().split()) lambda: list(stdin.readline().split()) nn n,r = na() na() n ni = lambda: int(ns()) lambda: int(ns()) ni na = lambda: list(map(int, stdin.readline().split())) lambda: list(map(int, stdin.readline().split())) na ns = lambda: stdin.readline().rstrip() lambda: stdin.readline().rstrip() ns stdin = sys.stdin sys.stdin stdin
import sys
stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
nn = lambda: list(stdin.readline().split())
ns = lambda: stdin.readline().rstrip()


n,r = na()

print(r+max(0,100*(10-n)))