import sys
N, R = map(int, sys.stdin.readline().split())
if N < 10:
  print(R + (10-N)*100)
else:
  print(R) import sys sys N, R = map(int, sys.stdin.readline().split()) N map(int, sys.stdin.readline().split()) map int sys.stdin.readline().split() sys.stdin.readline().split sys.stdin.readline() sys.stdin.readline sys.stdin sys stdin readline split R if N < 10:
  print(R + (10-N)*100)
else:
  print(R) N < 10 N 10 print(R + (10-N)*100) print R + (10-N)*100 R (10-N)*100 10-N 10 N 100 print(R) print R R = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) R N, R = map(int, sys.stdin.readline().split()) map(int, sys.stdin.readline().split()) N
import sys
N, R = map(int, sys.stdin.readline().split())
if N < 10:
  print(R + (10-N)*100)
else:
  print(R)