s = input().strip()

ss = s.split()

d = int(ss[0])

n = int(ss[1])

i = 1

while 1:

	x = i

	c = 0

	while x % 100 == 0:

		x //= 100

		c += 1

	if c == d:

		n -= 1

		if n == 0:

			print(i)

			break

	i += 1

s = input()

ss = s.split()

d = int(ss[0])

n = int(ss[1])

i = 1

while 1:

	x = i

	c = 0

	while x % 100 == 0:

		x //= 100

		c += 1

	if c == d:

		n -= 1

		if n == 0:

			print(i)

			break

	i += 1

s = input().strip()
ss = s.split()
d = int(ss[0])
n = int(ss[1])
i = 1
while 1:
    x = i
    c = 0
    while x % 100 == 0:
        x //= 100
        c += 1
    if c == d:
        n -= 1
        if n == 0:
            print(i)
            break
    i += 1

s = input()
ss = s.split()
d = int(ss[0])
n = int(ss[1])
i = 1
while 1:
    x = i
    c = 0
    while x % 100 == 0:
        x //= 100
        c += 1
    if c == d:
        n -= 1
        if n == 0:
            print(i)
            break
    i += 1

-s = input().strip() +s = input()