n,r=[int(i) for i in input().split()]
if n>=10:
  print(r)
else:
  print(r+100*(10-n)) 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:
  print(r)
else:
  print(r+100*(10-n)) n>=10 n 10 print(r) print r print(r+100*(10-n)) print r+100*(10-n) r 100*(10-n) 100 10-n 10 n r=[int(i) for i in input().split()] [int(i) for i in input().split()] r n,r=[int(i) for i in input().split()] [int(i) for i in input().split()] n
n,r=[int(i) for i in input().split()]
if n>=10:
  print(r)
else:
  print(r+100*(10-n))