#--Beginner
#1行1列
number, rate = map(int, input().split())

if (number < 10):
  print(rate+(100*(10-number)))
elif (number >= 10):
  print(rate)
 number, rate = map(int, input().split()) number map(int, input().split()) map int input().split() ().split () input split rate if (number < 10):
  print(rate+(100*(10-number)))
elif (number >= 10):
  print(rate) number < 10 number 10 print(rate+(100*(10-number))) print rate+(100*(10-number)) rate 100*(10-number) 100 10-number 10 number elif (number >= 10):
  print(rate) number >= 10 number 10 print(rate) print rate rate = map(int, input().split()) map(int, input().split()) rate number, rate = map(int, input().split()) map(int, input().split()) number
#--Beginner
#1行1列
number, rate = map(int, input().split())

if (number < 10):
  print(rate+(100*(10-number)))
elif (number >= 10):
  print(rate)

