Write a program which reads two integers x and y, and prints them in ascending order.
list = [int(x) for x in input().split( )]
print(' '.join(map(str,sorted(list))))


while True:
    l = [int(x) for x in input().split( )]
    if l == [0,0]:
        break
    else:
        l.sort()
        print(*l)

