import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

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 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 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 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 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 ni = lambda: int(ns()) lambda: int(ns()) ni r= na() na() r n, r= na() na() n
import sys

stdin = sys.stdin

ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

n, r= na()

if n >= 10:
  print(r)
else:
  print(r+100*(10-n))