n,x = map(int,input().split())
if n >= 10:
  print(x)
else:
  y = x + (10-n) * 100
  print(y)
 n,x = map(int,input().split()) n map(int,input().split()) map int input().split() ().split () input split x if n >= 10:
  print(x)
else:
  y = x + (10-n) * 100
  print(y) n >= 10 n 10 print(x) print x y = x + (10-n) * 100 y x + (10-n) * 100 x (10-n) * 100 10-n 10 n 100 print(y) print y y = x + (10-n) * 100 x + (10-n) * 100 y n,x = map(int,input().split()) map(int,input().split()) n x = map(int,input().split()) map(int,input().split()) x
n,x = map(int,input().split())
if n >= 10:
  print(x)
else:
  y = x + (10-n) * 100
  print(y)

