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

if n >= 10:
  print(rating)
if n < 10:
  print(rating + (10 - n)*100) n, rating = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split rating if n >= 10:
  print(rating) n >= 10 n 10 print(rating) print rating if n < 10:
  print(rating + (10 - n)*100) n < 10 n 10 print(rating + (10 - n)*100) print rating + (10 - n)*100 rating (10 - n)*100 10 - n 10 n 100 rating = map(int, input().split()) map(int, input().split()) rating n, rating = map(int, input().split()) map(int, input().split()) n
n, rating = map(int, input().split())

if n >= 10:
  print(rating)
if n < 10:
  print(rating + (10 - n)*100)