a,b=map(int,input().split())
if a<=b:
	print(int(a*(10**(b)-1)/9))
else:
	print(int(b*(10**(a)-1)/9))
541ab5ce026c75a829aa86a101082f6125e19de6
<mask token>

<mask token>
if a <= b:
    print(int(a * (10 ** b - 1) / 9))
else:
    print(int(b * (10 ** a - 1) / 9))

a, b = map(int, input().split())
if a <= b:
    print(int(a * (10 ** b - 1) / 9))
else:
    print(int(b * (10 ** a - 1) / 9))

a,b=map(int,input().split())
if a<=b:
	print(int(a*(10**(b)-1)/9))
else:
	print(int(b*(10**(a)-1)/9))