a, b = map(int, input().split())
k = 10 -a
c = 100 * k
x = b + c
if a>=10:
  print(b)
else:
  print(x) a, b = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split b k = 10 -a k 10 -a 10 a c = 100 * k c 100 * k 100 k x = b + c x b + c b c if a>=10:
  print(b)
else:
  print(x) a>=10 a 10 print(b) print b print(x) print x a, b = map(int, input().split()) map(int, input().split()) a b = map(int, input().split()) map(int, input().split()) b x = b + c b + c x c = 100 * k 100 * k c k = 10 -a 10 -a k
a, b = map(int, input().split())
k = 10 -a
c = 100 * k
x = b + c
if a>=10:
  print(b)
else:
  print(x)