n, m = map(int, input().split(" "))

if n <= 9:
  print(m + (100 * (10 - n)))
else:
  print(m) n, m = map(int, input().split(" ")) n map(int, input().split(" ")) map int input().split(" ") ().split () input split " " m if n <= 9:
  print(m + (100 * (10 - n)))
else:
  print(m) n <= 9 n 9 print(m + (100 * (10 - n))) print m + (100 * (10 - n)) m 100 * (10 - n) 100 10 - n 10 n print(m) print m m = map(int, input().split(" ")) map(int, input().split(" ")) m n, m = map(int, input().split(" ")) map(int, input().split(" ")) n
n, m = map(int, input().split(" "))

if n <= 9:
  print(m + (100 * (10 - n)))
else:
  print(m)