N,R = map(int,input().split())

if(N <= 9):
  print(str(R + 100 * (10 - N)))
else:
  print(str(R)) N,R = map(int,input().split()) N map(int,input().split()) map int input().split() ().split () input split R if(N <= 9):
  print(str(R + 100 * (10 - N)))
else:
  print(str(R)) N <= 9 N 9 print(str(R + 100 * (10 - N))) print str(R + 100 * (10 - N)) str R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N print(str(R)) print str(R) str R R = map(int,input().split()) map(int,input().split()) R N,R = map(int,input().split()) map(int,input().split()) N
N,R = map(int,input().split())

if(N <= 9):
  print(str(R + 100 * (10 - N)))
else:
  print(str(R))