def resolve():
  n, r = map(int, input().split())
  if n >= 10:
    print(r)
    return
  for i in range(10000):
    if i - 100 * (10 - n) == r:
      print(i)
      return
  return

if __name__ == "__main__":
  resolve() def resolve():
  n, r = map(int, input().split())
  if n >= 10:
    print(r)
    return
  for i in range(10000):
    if i - 100 * (10 - n) == r:
      print(i)
      return
  return resolve n, r = map(int, input().split()) n map(int, input().split()) map int input().split() ().split () input split r if n >= 10:
    print(r)
    return
   n >= 10 n 10 print(r) print r return for i in range(10000):
    if i - 100 * (10 - n) == r:
      print(i)
      return
   i range(10000) range 10000 if i - 100 * (10 - n) == r:
      print(i)
      return
   i - 100 * (10 - n) == r i - 100 * (10 - n) i 100 * (10 - n) 100 10 - n 10 n r print(i) print i return return if __name__ == "__main__":
  resolve() __name__ == "__main__" __name__ "__main__" resolve() resolve def resolve():
  n, r = map(int, input().split())
  if n >= 10:
    print(r)
    return
  for i in range(10000):
    if i - 100 * (10 - n) == r:
      print(i)
      return
  return def resolve():
  n, r = map(int, input().split())
  if n >= 10:
    print(r)
    return
  for i in range(10000):
    if i - 100 * (10 - n) == r:
      print(i)
      return
  return resolve
def resolve():
  n, r = map(int, input().split())
  if n >= 10:
    print(r)
    return
  for i in range(10000):
    if i - 100 * (10 - n) == r:
      print(i)
      return
  return

if __name__ == "__main__":
  resolve()
