i = 1

while True:

	a,b = list(map(int, input().split()))

	if (a == 0 and b == 0):

		break

	elif (b < a):

		print((b, a))

	else:

		print((a, b))

		

		
while True:

    a,b = list(map(int, input().split()))

    if a == 0 and b ==0:

        break

    elif a < b:

        print((a,b))

    else:

        print((b,a))
i = 1
while True:
    a, b = list(map(int, input().split()))
    if a == 0 and b == 0:
        break
    elif b < a:
        print((b, a))
    else:
        print((a, b))

while True:
    a, b = list(map(int, input().split()))
    if a == 0 and b == 0:
        break
    elif a < b:
        print((a, b))
    else:
        print((b, a))

-i = 1 -    elif b < a: +    elif a < b: +        print((a, b)) +    else: -    else: -        print((a, b))