while 1:
try:
a = input()
b = input()
lens_a = len(a)
lens_b = len(b)
if lens_a >
while 1:
try:
a = input()
b = input()
lens_a = len(a)
lens_b = len(b)
if lens_a >