x = input().split()
if int(x[0]) >= 10:
  print(x[1])
else:
  r = int(x[1]) + 100*(10 - int(x[0]))
  print(r) x = input().split() x input().split() ().split () input split if int(x[0]) >= 10:
  print(x[1])
else:
  r = int(x[1]) + 100*(10 - int(x[0]))
  print(r) int(x[0]) >= 10 int(x[0]) int x[0] x 0 10 print(x[1]) print x[1] x 1 r = int(x[1]) + 100*(10 - int(x[0])) r int(x[1]) + 100*(10 - int(x[0])) int(x[1]) int x[1] x 1 100*(10 - int(x[0])) 100 10 - int(x[0]) 10 int(x[0]) int x[0] x 0 print(r) print r x = input().split() input().split() x r = int(x[1]) + 100*(10 - int(x[0])) int(x[1]) + 100*(10 - int(x[0])) r
x = input().split()
if int(x[0]) >= 10:
  print(x[1])
else:
  r = int(x[1]) + 100*(10 - int(x[0]))
  print(r)