count, outrate = map(int, input().split())

if count >= 10:
  result = outrate
  print(result)
else:
  result = outrate + 100 * (10 - count)
  print(result) count, outrate = map(int, input().split()) count map(int, input().split()) map int input().split() ().split () input split outrate if count >= 10:
  result = outrate
  print(result)
else:
  result = outrate + 100 * (10 - count)
  print(result) count >= 10 count 10 result = outrate result outrate print(result) print result result = outrate + 100 * (10 - count) result outrate + 100 * (10 - count) outrate 100 * (10 - count) 100 10 - count 10 count print(result) print result outrate = map(int, input().split()) map(int, input().split()) outrate count, outrate = map(int, input().split()) map(int, input().split()) count result = outrate outrate result result = outrate + 100 * (10 - count) outrate + 100 * (10 - count) result
count, outrate = map(int, input().split())

if count >= 10:
  result = outrate
  print(result)
else:
  result = outrate + 100 * (10 - count)
  print(result)
