N,R=[int(i) for i in input().split()] 

if N < 10:
  R += 100 * (10- N)
  print(R)
else:
  print(R) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i N,R=[int(i) for i in input().split()] N [int(i) for i in input().split()] R if N < 10:
  R += 100 * (10- N)
  print(R)
else:
  print(R) N < 10 N 10 R += 100 * (10- N) R 100 * (10- N) 100 10- N 10 N print(R) print R print(R) print R N,R=[int(i) for i in input().split()] [int(i) for i in input().split()] N R=[int(i) for i in input().split()] [int(i) for i in input().split()] R R += 100 * (10- N) 100 * (10- N) R
N,R=[int(i) for i in input().split()] 

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