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