n,k=map(int,input().split())

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

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