tmp = input().split(" ")
 
N = int(tmp[0])
R = int(tmp[1])
 
if N >= 10:
  print(R)
else:
  ans = R + 100 * (10 - N)
  print(int(ans)) tmp = input().split(" ") tmp input().split(" ") ().split () input split " " N = int(tmp[0]) N int(tmp[0]) int tmp[0] tmp 0 R = int(tmp[1]) R int(tmp[1]) int tmp[1] tmp 1 if N >= 10:
  print(R)
else:
  ans = R + 100 * (10 - N)
  print(int(ans)) N >= 10 N 10 print(R) print R ans = R + 100 * (10 - N) ans R + 100 * (10 - N) R 100 * (10 - N) 100 10 - N 10 N print(int(ans)) print int(ans) int ans tmp = input().split(" ") input().split(" ") tmp N = int(tmp[0]) int(tmp[0]) N ans = R + 100 * (10 - N) R + 100 * (10 - N) ans R = int(tmp[1]) int(tmp[1]) R
tmp = input().split(" ")
 
N = int(tmp[0])
R = int(tmp[1])
 
if N >= 10:
  print(R)
else:
  ans = R + 100 * (10 - N)
  print(int(ans))