Problem:
Swapping Two Numbers Write a program which reads two integers x and y , and prints them in ascending order. Input The input consists of multiple datasets. Each dataset consists of two integers x and y separated by a single space. The input ends with two 0 (when both x and y are zero). Your program should not process for these terminal symbols. Output For each dataset, print x and y in ascending order in a line. Put a single space between x and y . Constraints  0 ≤ x , y ≤ 10000  the number of datasets ≤ 3000  Sample Input 3 2
2 2
5 3
0 0 Sample Output 2 3
2 2
3 5

Solution (Python):
while 1:
  a = list(map(int,input().split()))
  if a[0] == a[1] == 0:
    break
  else:
    a.sort()
    print(f"{a[0]} {a[1]}")

Solution (Python):
l = []

while True:
  xy = list(map(int, input().split()))
  if (xy[0] == 0 and xy[1] == 0):
    break
  else:
    l.append(xy)

for i in range(0, len(l)):
  x, y = l[i][1], l[i][0]
  if (x > y):
    print(y, x)
  else:
    print(x, y)

Solution (Python):
while True:
    x,y=map(int,input().split())
    if x==0 and y==0:
        break    
    else:
        if x>y:
            print(y,x)
        else:
            print(x,y)

Solution (Python):
while True:
    nl = list(map(int, input().split()))
    if nl[0] == 0 and nl[1] == 0:
        break
    nl.sort()
    print(nl[0], nl[1])

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x==0 and y==0:break
    if x<=y: print(f"{x} {y}")
    else: print(f"{y} {x}")

Solution (Python):
while True:
  a = map(int,raw_input().split())
  a.sort()
  if a == [0, 0]: break

  for x in a:
    print x,
  print

Solution (Python):
while True:
    a,b = input().split(" ")
    i = int(a) + int(b)
    if i == 0:
        break
    elif int(a) <= int(b):
        print(a + " " + b)
    elif int(a) > int(b):
        print(b + " " + a)

Solution (Python):
while True:
    ls=list(map(int,input().split()))
    if not ls[0] | ls[1]:
        break
    print(*sorted(ls))

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break
    if x > y:
        x,y = y,x
    print("%d %d" %(x,y))

Solution (Python):
while True:
	n=input().split()
	n[0]=int(n[0])
	n[1]=int(n[1])
	if n[0]==0 and n[1]==0:
		break

	if n[0]>n[1]:
		c=n[0]
		n[0]=n[1]
		n[1]=c
	print(n[0],n[1])

Solution (Python):
while True:
    x,y = map(int, input().split())
    
    if x == 0 and y == 0: break
    if x > y:
        print(y, x)
    else:
        print(x, y)

Solution (Python):
while True:
    a,b=list(map(int,input().split()))
    if a==b==0:
        break
    if a>b: a,b=b,a
    print(a, b)

Solution (Python):
while True:
    a=list(map(int,input().split()))
    a.sort()
    
    if a[0]==0 and a[1]==0:
        break
    
    else:
        print(a[0],a[1])

Solution (Python):
while True:
    x, y = map(int, input().split())
    swap = 0
    if x > y:
        swap = x
        x = y
        y = swap
    elif x == 0 and y == 0:
        break
    
    print(x, y)

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

Solution (Python):
while True:
    li = input().split()
    li[0] = int(li[0])
    li[1] = int(li[1])
    
    if li[0] == li[1] and int(li[0]) == 0:
        break
    else:
        li.sort()
        print(int(li[0]),int(li[1]))

Solution (Python):
while True:
    a,b = map(int,input().split())
    if a==0 and b==0:
        break
    if a>b:
        a,b=b,a
    
    print(a,b)

Solution (Python):
while 1:
    *L, = map(int, input().split())
    if L[0]==0 and L[1]==0:
        break
    L.sort()
    print(*L)

Solution (Python):
x, y = map(int, input().split())
while x != 0 or y != 0:
    print(x, y) if x < y else print(y, x)
    x, y = map(int, input().split())

Solution (Python):
while True:
    l = input()
    x,y = map(int, l.split())
    if x == 0 and y == 0:
        break
    elif x > y:
        x,y = y,x
    print(f"{x} {y}")

Solution (Python):
x,y = map(int,input().split())


while x != 0 or y != 0:
    if x < y :
        print(x,y)
    else:
        print(y,x)
    x,y = map(int,input().split())

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break
    if x > y:
        x,y = y,x
    print("%d %d" %(x,y))

Solution (Python):
li = list()
while (True):
    a,b = map(int,input().split())
    if a==b and a==0:
        break
    else:
        li.append(sorted([a,b]))
for a,b in li:
    print(a,b)

Solution (Python):
while (1):
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        exit()
    elif x < y:
        print(x, y)
    else:
        print(y, x)

Solution (Python):
while True:
    list = input().split()
    a = int(list[0])
    b = int(list[1])
    if a == 0 and b == 0:
        break
    if a > b:
        print(b,a)
    else:
        print(a,b)

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break
    if x > y:
        x,y = y,x
    print("%d %d" %(x,y))

Solution (Python):
while True:
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    elif x > y:
        print(y, x)
    else:
        print(x, y)

Solution (Python):
while True:
    line_i =list(map(int,input().split()))
    a,b = line_i[0], line_i[1]
    if a==0and b ==0:
        break
    elif a>b:
        a,b = b,a
    print(a,b)

Solution (Python):
list = []
while True:
    t1, t2 = map(int, input().split())
    if t1 == 0 and t2 == 0:
        break
    list.append([t1, t2])

for i in range(len(list)):
    if list[i][0] > list[i][1]:
        tmp = list[i][0]
        list[i][0] = list[i][1]
        list[i][1] = tmp


for i in range(len(list)):
    print(" ".join(map(str, list[i])))

Solution (Python):
base_list = list()
i = 0
while i < 3000:
    input_a = input("")
    term = input_a.split(' ')
    a = int(term[0])
    b = int(term[1])
    if(a == 0 and b == 0):
        break
    else:
        subset_list = [a, b]
        subset_list.sort()
        base_list.append(subset_list)

    i += 1

for bl in base_list:
    print("{} {}".format(bl[0], bl[1]))

Solution (Python):
while True:
    sorted_input = sorted(map(int,input().split()))
    if all([item == 0 for item in sorted_input]):
        break
    else:
        print(*sorted_input)

Solution (Python):
while True:
	a,b = map(int, input().split())
	if a==0 and b==0:
		break
	if a > b:
		print(b, a)
	else:
		print(a, b)

Solution (Python):
while True:
    a,b = map(int, input().split())
    if a == 0 and b == 0:
        break
    if a > b:
        print(f"{b} {a}")
    else:
        print(f"{a} {b}")

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

Solution (Python):
while True:
    x,y = map(int, input().split())
    if x == 0 and y == 0:
        break
    if x >= y:
        print(y, x)
    else:
        print(x, y)

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0 :
        break
    elif x < y :
        print(f"{x} {y}")
    else:
        print(f"{y} {x}")

Solution (Python):
while True:
    table = list(map(int, input().split()))
    table.sort()
    if table[0]==0 and table[1]==0:
        break
    else:
        print(str(table[0])+" "+str(table[1]))

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break
    if x > y:
        x,y = y,x
    print("%d %d" %(x,y))

Solution (Python):
while True:
    a,b = (int(x) for x in input().split())
    if a == 0 and b ==0:
        break
    elif a <= b:
        print(a,b)

    elif a > b:
        print(b,a)

Solution (Python):
while True:
    a,b = map(int, input().split())
    if a == 0 and b == 0: break
    if a > b:
        print(b, a)
    else:
        print(a, b)

Solution (Python):
while True:
    x,y = map(int,input().split())

    if x == 0 and y == 0:
        break
    else:
        if x < y :
            print(x,y)

        else:
            print(y,x)

Solution (Python):

flag = 0
while flag == 0:
    x = list(map(int, input().split()))
    x.sort()
    if x[0] != 0 or x[1] != 0:
        print(x[0], x[1])
    else:
        flag = 1

Solution (Python):
def main():
  while True:
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    if x > y:
        x, y = y, x
    print("%d %d" % (x, y))

if __name__ == '__main__':
  main()

Solution (Python):
while 1:
    a = list(map(int, input().split()))
    if a[0]==0 and a[1]==0 :
        break
    else:
        a.sort()
        print(str(a[0])+" "+str(a[1]))

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

Solution (Python):
while True:
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    if x < y:
        print(x, y)
    else:
        print(y, x)

Solution (Python):

while True:
    a = list(map(int,input().split()))
    if a[0] == 0 and a[1] == 0 :
        break
    else:
        if a[0] < a[1]:
            print("%d %d"%(a[0],a[1]))
        else:
            print("%d %d" % (a[1], a[0]))

Solution (Python):
while True:
    a, b = map(int,input().split())
    if a == 0 and b == 0:
        break
    elif a < b:
        print(str(a) + ' ' + str(b))
    else:
        print(str(b) + ' ' + str(a))

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

Solution (Python):
x = []
y = []

while True:
    x1, y1 = map(int, input().split())
    if x1 == 0 and y1 == 0:
        break
    else:
        x.append(x1)
        y.append(y1)

iterations = len(x)

for i in range(iterations):
    print(min(x[i], y[i]), max(x[i], y[i]))

Solution (Python):
while True:
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    
    if x > y:
        x, y = y, x
    
    print(x, y)

Solution (Python):
import sys
i=0
while i<3000:
    a, b = map(int, input().split()) 
    if(a==0 and b==0):
        break
    elif(a<b):
        print(str(a)+' '+str(b))
    else:
        print(str(b)+' '+str(a))

Solution (Python):
while True:
    nums = list(map(int, input().split(' ')))
    if not any(nums):
        break
    else:
        print(' '.join(map(str, sorted(nums))))

Solution (Python):
for i in range(3000):
    x,y= map(int,input().split())
    if x==0 and y==0:
        break
    
    if x>y:
        print(y,x)
    else:
        print(x,y)

Solution (Python):
def test():
    inp = [1, 1]
    while True:
        inp = list(map(int, input().split()))
        if inp[0] == 0 and inp[1] == 0:
            break
        inp.sort()
        print(f'{inp[0]} {inp[1]}')
 

if __name__ == '__main__':
    test()

Solution (Python):
samples = []
while True:
    tmp = list(map(int, input().split()))
    if tmp == [0, 0]:
        break
    samples.append(tmp)

for sample in samples:
    print(*sorted(sample))

Solution (Python):
while True:
    nums = input().split()
    if nums == ['0', '0']:
        break
    nums = list(map(int, nums))
    nums.sort()
    print(" ".join([str(n) for n in nums]))

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x==0 and y==0:
        break
    if x>y:
        print(y,x)
    else:
        print(x,y)

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == y == 0:
        break
    print(min(x,y),max(x,y))

Solution (Python):
for i in range(3000):
    a,b = map(int, input().split())
    if(a == 0 and b == 0):
        break
    else:
        if (a>b):
            print(b,a)
        else:
            print(a,b)

Solution (Python):
while True:
    a = sorted(list(map(int,input().split())))
    if a[0] == 0 and a[1] == 0:
        break
    print(a[0],a[1])

Solution (Python):
while True:
    x, y = map(int, input().split())

    if x == 0 and y == 0:
        break

    if x >= y:
        x, y = y, x
    
    print('{} {}'.format(x, y))

Solution (Python):
import sys
s = sys.stdin.readlines()

for e in s:
    input_l = list(map(int,e.split()))
    if input_l[0] == 0 and input_l[1] == 0:
        break
    else:
        input_l.sort()
        print(str(input_l[0]) + " " + str(input_l[1]))

Solution (Python):
while True:
    a,b = map(int, input().split())
    if a == 0 and b == 0:
        break
    print(min(a, b), max(a, b))

Solution (Python):
while True:
    a,b = map(int, input().split())
    if a == 0 and b == 0: break
    else:
        if a > b:
            print(b, a)
        else:
            print(a, b)

Solution (Python):
while True:
    a,b = map(int, input().split())
    if a == 0 and b == 0:
        break
    if a > b:
        print(b, a)
    else:
        print(a, b)

Solution (Python):
while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    if a > b:
        a, b = b, a
    print("%d %d" % (a, b))

Solution (Python):
for i in range(0,3000):
    a,b=input().split()
    a,b=[int(a),int(b)]
    if a==0 and b==0:
        break
    if a>b:
        tmp=a
        a=b
        b=tmp
    print(a,b)

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

Solution (Python):
while True:
    x, y = (int(x) for x in input().split())
    if(x == 0 and y == 0): break
    if x < y: print(x, y)
    else: print(y, x)

Solution (Python):
import sys

ff = sys.stdin

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

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

Solution (Python):
while True:
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    if x > y:
        x, y = y, x
    print(x, y)

Solution (Python):
num=1
while(1):
    x,y=map(int,input().split())
    if(x==y==0):break
    if(x>y):x,y=y,x
    print(x,y)

Solution (Python):
data_set_list = []

def swap(t1, t2):
    return t2, t1

while True:
    x, y = map(int, input().split())
    if x == y == 0:
        break
    if x > y:
        x, y = swap(x, y)
    data_set_list.append((x, y))

for data in data_set_list:
    print(data[0], data[1])

Solution (Python):
while 1:
    x,y = map(int,input().split())
    
    if x == 0 and y == 0:
        break
    else:
        print(min(x,y),max(x,y))

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

Solution (Python):
while True:
    x, y = map(int, input().split())
    if x ==0 and y==0:
        break
    else:
        if x < y:
            print(x, y)
        else:
            print(y, x)

Solution (Python):
while(True):
    x, y = map(int, input().split())
    if x==0 and y==0:
        break
    print(*sorted((x,y)))

Solution (Python):
while True:
    a, b = map(int,input().split())
    if a == 0 and b == 0:
        break
    if a > b:
        a, b = b, a
    print(a, b)

Solution (Python):
while True:
    x, y = map(int,input().split())
    if x == 0 and y == 0:
        break
    
    if x < y:
        print(x, y);
    else:
        print(y, x);

Solution (Python):
x, y = [], []

for _ in range(3000):
    i, j = map(int, input().split())
    if i == 0 and j == 0:
        break
    else:
        x.append(i)
        y.append(j)
        
for k in range(len(x)):
    if x[k] < y[k]:
        print(x[k], y[k])
    else:
        print(y[k], x[k])

Solution (Python):
while(True):
	x, y = map(int, input().split())
	if x == 0 and y == 0:
		break
	if x < y:
		print(x, y)
	else:
		print(y, x)

Solution (Python):
while True:
    num = input("").split()
    x = int(num[0])
    y = int(num[1])
    
    if x == y == 0:
        break
        
    if x > y:
        tmp = x
        x = y
        y = tmp
        
    print(f"{x} {y}")

Solution (Python):
while True:
    a,b=map(int, input().split())
    if a==0 and b==0:
        break
    else:
        list=[a,b]
        list.sort()
        print(list[0],list[1])

Solution (Python):
i = 0
while i < 3000:
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    elif x <= y:
        print(x, y)
    else:
        print(y, x)

Solution (Python):
for i in range(3001):
  x, y = map(int, input().split())
  if x == 0 and y == 0:
    break;
  else:
    if x > y:
      print( str(y) + " " + str(x))
    else:
      print( str(x) + " " + str(y))

Solution (Python):
x = []
for i in iter(input, '0 0'):
    x.append(list(map(int, i.split())))
for i in range(len(x)):
    a = sorted(x[i])
    print(f'{a[0]} {a[1]}')

Solution (Python):
i = 0
listx, listy = [], []

while(True):
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    listx.append(x)
    listy.append(y)
    i += 1

for num in range(i):
    if listx[num] < listy[num]:
        print(listx[num], listy[num])
    else:
        print(listy[num], listx[num])

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break
    if x > y:
        x,y = y,x
    print(x,y)

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        exit ()
    else:
        print (x,y) if x <= y else print (y,x)

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

Solution (Python):
l = list(map(int, input().split()))

while l != [0, 0]:
    l_sorted = sorted(l)
    print(l_sorted[0], l_sorted[1])
    l = list(map(int, input().split()))

Solution (Python):
while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    else:
        if a > b:
            print(b, a)
        else:
            print(a, b)

Solution (Python):
while True:
    x,y = list(map(int, input().split()))
    if x == 0 and y == 0:
        break
    print(min(x,y),max(x,y))

Solution (Python):
while True:
    n = list(map(int, input().split()))
    if n[0] == n[1] == 0:
        break
    n.sort()
    print(n[0], n[1])

Solution (Python):

while True:
    a,b = map(int,input().split())
    if a+b==0:break;
    if b<a : a,b = b,a
    print (a,b)

Solution (Python):
while True:
    a = input()
    if a == "0 0":
        break
    ans = list(map(int,a.split()))
    ans.sort()
    answer = list(map(str,ans))
    print(" ".join(answer))

Solution (Python):
while 1:
    a,b=map(int,input().split())
    if a==0 and b==0:
        break
    else:
        print("%d %d"%(a,b) if a<=b else "%d %d"%(b,a))

Solution (Python):
a = []
while True:
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    a.append((x, y))

for i in range(len(a)):
    print(' '.join(map(str, sorted(a[i]))))

Solution (Python):
while True:
  x,y=map(int,input().split())
  if x == 0 and y == 0:
      break
  if x > y:
        x,y = y,x
  print(x,y)

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break 
    if x < y:
        print(x, y)
    else :
        print(y, x)

Solution (Python):

i = 0
while True:
    a  = list(map(int,input().split()))
    if a[0] == a[1] == 0:
        break
    print(*sorted(a))

Solution (Python):
while True:
    x, y = map(int, input().split())
    if (x == 0 and y == 0):
        break
    print(min(x, y), max(x, y))

Solution (Python):

while True:
    x,y=map(int,input().split())
    if x==0 and y==0:
        break
    if x<y:
        print("{0} {1}".format(x,y))
    else:
        print("{1} {0}".format(x,y))

Solution (Python):
while True:
    x,y = map(int,input().split())

    if x > y:
        y,x = x,y


    if x == 0 and y ==0:
        break
    else:
        print(str(x)+" "+str(y))

Solution (Python):
ans = []

while True:
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    line = [0] * 2
    line[0] = x
    line[1] = y
    line.sort()
    ans.append(line)

for i in ans:
    print(' '.join(map(str, i)))

Solution (Python):
while True:
    xs = list(map(int, input().split()))
    if xs[0] == 0 and xs[1] == 0:
        break
    xs = sorted(xs)
    print("{} {}".format(xs[0], xs[1]))

Solution (Python):
for i in range(3000):
    a = list(map(int, input().split(" ")))
    if a[0] == 0 and a[1] == 0:
        break
    else:
        a = sorted(a)
        print("{} {}".format(a[0], a[1]))

Solution (Python):
while True:
    x,y =map(int,input().split())
    if x == y ==0:
        break
    
    if x > y :
        x,y = y,x
    print(x,y)

Solution (Python):

while 1:
    x, y = map(int, input().split())
    if((x == 0) and (y == 0)):
        break
    else:
        if(x > y):
            print("%d %d" % (y, x))
        else:
            print("%d %d" % (x, y))

Solution (Python):
while True:
    a,b=(int(x) for x in input().split())
    c=a
    if a==0 and b==0:
        break
    if a>b:
        a=b
        b=c
    print(a, b)

Solution (Python):
while True:
    a, b = sorted(map(int, input().split()))
    if a == 0 and  b == 0:
        exit()
    print(a, b)

Solution (Python):
while True:
  x,y = map(int,input().split())
  if x==0 and y==0: break
  if x>y:
    print(y,x)
  else:
    print(x,y)

Solution (Python):
while True:
	x,y=map(int,input().split())
	if x==0 and y==0:
		break
	if x>y:
		t=x
		x=y
		y=t
	print("%d %d" %(x,y))

Solution (Python):
while True:
 s = input().rstrip().split(' ')
 a = int(s[0])
 b = int(s[1])
 if a == 0 and b == 0:
  break;
 else:
  if b < a:
   print(str(b) + " " + str(a))
  else:
   print(str(a) + " " + str(b))

Solution (Python):
while True:
    ans = sorted([int(n) for n in input().split()])
    if sum(ans) == 0:
        break
    print(*ans)

Solution (Python):
while True:
    x = sorted(map(int, input().split()))
    if x[1]==0:
        break
    print(x[0],x[1])

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

Solution (Python):
dataset = []
a, b = 1, 1
while not(a == b == 0):
    a, b = map(int, input().split())
    dataset.append([a, b])
for data in dataset:
    data.sort()
    s = ' '.join(map(str, data))
    if s != '0 0':
        print(s)

Solution (Python):
c=[0]
d=1
while c[-1]!="0 0":
    a=[int(x) for x in input().split()]
    a.sort()
    b=("%d %d"%(a[0],a[1]))
    c.append(b)
while c[d]!="0 0":
    print(c[d])
    d+=1

Solution (Python):
output=[]
while True:
	x,y=map(int, input().split())
	if (x+y)!=0:
		output.append(str((x>=y)*y + (y>x)*x) + ' ' + str((x>=y)*x + (y>x)*y))
	else:
		break
print('\n'.join(output))

Solution (Python):
while True:
    xy = list(map(int, input().split()))
    if xy[0] == 0 and xy[1] == 0:
        break
    if xy[0] > xy[1]:
        print("{} {}".format(xy[1], xy[0]))
    else:
        print("{} {}".format(xy[0], xy[1]))

Solution (Python):
while True:
    a, b = map(int,input().split())
    if a == 0 and b == 0: break
    if a > b:
        print(b, a)
    else:
        print(a, b)

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

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:break
    if x > y:
        print(y,x)
    else:
        print(x,y)

Solution (Python):
while True:
    a = list(map(int, input().split()))
    if a[0] == 0 and a[1] == 0:
        break
    else:
        a.sort()
        print(a[0], a[1])

Solution (Python):
while True:
    x,y=map(int,input().split())
    
    if x == 0 and y==0:
        break
    if x>y:
        x,y=y,x
    print(x,y)

Solution (Python):
cnt = 0
while True:
    cnt += 1
    a,b = map(int, input().split())
    if a == 0 and b == 0:
        break
    print(str(min(a,b)) + " " + str(max(a,b)))

Solution (Python):
while True:
  a=list(map(int,input().split()))
  if a==[0,0]:
    break
  else:
    a.sort()
    print(' '.join(map(str,a)))

Solution (Python):


while True:
    x, y = map(int, input().split())

    if x==0 and y==0:
        break

    if x>y:
        tmp = x
        x = y
        y = tmp
    print(str(x) + " " + str(y))

Solution (Python):
for i in range(3000):
    x,y=map(int,input().split())
    if x==0 and y==0:
        break
    if x>y:
        print(y,x)
    else:
        print(x,y)

Solution (Python):
i=1
while True:
 x,y=map(int, input().split()) 
 num=[x,y]
 if x==0 and y==0:
   break
 num=sorted(num)
 print("{} {}".format(num[0],num[1]))
 i+=1

Solution (Python):
i = 0
while 1:
    l = input()
    a,b = list(map(int,l.split()))
    if a == 0 and b == 0:
        break
    if a > b:
        print(b,a)
    else:
        print(a,b)

Solution (Python):
l = sorted(list(map(int, input().split())))
while l[0] != 0 or l[1] != 0:
    print(l[0], l[1])
    l = sorted(list(map(int, input().split())))

Solution (Python):
lists = []
while 1:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break
    tmp = [x,y]
    tmp.sort()
    lists.append(tmp)
for i in range(len(lists)):
    print(lists[i][0],lists[i][1])

Solution (Python):
while 1:
    x,y = map(int,input().split())
    if (x,y) == (0,0):
        break
    if x > y:
        x,y = y,x
    print(x,y)

Solution (Python):
while True:
    a, b = map(int, input().split())

    if a == 0 and b == 0:
        break

    if a > b:
        print(b,a)
    else:
        print(a,b)

Solution (Python):
while True:
    input_value = input()
    
    numbers = list(map(int, input_value.split()))

    if numbers[0] == 0 and numbers[1] == 0:
        break

    numbers.sort()

    print(*numbers)

Solution (Python):
while True:
  a, b = input().split()
  a = int(a)
  b = int(b)

  if a == 0 and b == 0:
    break


  if a > b:
    a, b = b, a

  print(a,b)

Solution (Python):
while True:
    a,b = map(int, input().split())
    if a == 0 and b == 0:
        break
    if a > b:
        print(b,a)
    else:
        print(a,b)

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break
    elif x > y:
        x,y = y,x
    print(x,y)

Solution (Python):
while True:
    x,y=map(int,input().split())
    if (x,y)==(0,0):
        break
    if x>y:
        x,y=y,x
    print(x,y)

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

Solution (Python):
x = []
y = []
while True:
    a, b = map(int, input().split())
    x.append(a)
    y.append(b)
    if a == 0 and b == 0:
        break
for i in range((len(x) - 1)):
  if x[i] < y[i]:
    print("{} {}".format(x[i], y[i]))
  else:
    print("{} {}".format(y[i], x[i]))

Solution (Python):
while True:
    a,b = map(int, input().split())
    if a == b == 0:
        break
    elif a < b:
        print(f"{a} {b}")
    else:
        print(f"{b} {a}")

Solution (Python):
while True:
    a,b = map(int, input().split())
    if a==b==0:
        break
    if a>b:
        a,b = b,a
    print("%d %d" %(a,b))

Solution (Python):
while True:
    a = list(map(int, input().split()))
    if a[0] == 0 and a[1] == 0:
        break
    a.sort()
    print(a[0], a[1])

Solution (Python):
while True:
    x,y = map(int,input().split())
    if (x == 0 and y == 0):
        break
    if (x<=y):
        print(x , y)
    if (x>y):
        print(y ,x)

Solution (Python):
while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    else:
        if a > b:
            print(str(b) + " " + str(a))
        else:
            print(str(a) + " " + str(b))

Solution (Python):
while True:
    x, y = list(map(int, input().split()))
    if x == 0 and y == 0:
        break
    elif x >= y:
        print(str(y),  str(x))
    else:
        print(str(x),  str(y))

Solution (Python):
while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    if a > b:
        print(b , a)
    else:
        print(a , b)

Solution (Python):
lis = []
while True:
    xy = [int(i) for i in input().split()]
    if xy[0] == 0 and xy[1] == 0:
        break
    else:
        lis.append(xy)

for i in lis:
    if i[0] > i[1]:
        print(i[1], i[0])
    else:
        print(i[0], i[1])

Solution (Python):
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        exit()
    if x > y:
        x,y = y,x
    print(str(x) + " " + str(y))

Solution (Python):
while True:
    a,b = map(int, input().split())
    if a == 0 and b == 0:
        break
    if a > b:
        a,b = b,a
    print(a,b)

Solution (Python):
while True:
    a = list(map(int,input().split()))
    if set(a) == {0}:break
    else:
        print(*sorted(a))

Solution (Python):
x,y = map(int,input().split())
while True:
    if x == 0 and y == 0:
        break
    else:
        if x > y:
            print(y, x)
        else:
            print(x, y)
    x,y = map(int,input().split())

Solution (Python):
while True:
		x=list(map(int,input().split()))
		if x[0]==0 and x[1]==0:
			break
		elif x[0]<x[1]:
			print(str(x[0])+' '+str(x[1]))
		else:
			print(str(x[1])+' '+str(x[0]))

Solution (Python):
i = input()
while i !="0 0":
    l = list(map(int, i.split()))
    l.sort()
    ascend = map(str,l)
    print(" ".join(ascend))
    i = input()

Solution (Python):
while True:
  x, y = map(int, input().split(' '))
  if x == 0 and y == 0:
    break

  print(min(x, y), max(x, y))

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

Solution (Python):
while True:
    x, y = [int(i) for i in input().split()]
    if x == 0 and y == 0:
        break
    if x > y:
        print(y,x)
    else:
        print(x,y)

Solution (Python):


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

Solution (Python):
while True:
    l = input()
    x,y = map(int, l.split())
    if x == 0 and y == 0:  
        break
    elif x < y:
        print(f"{x} {y}")
    else:
        print(f"{y} {x}")

Solution (Python):
num = 0
while num < 10000 :
    s = input().split()
    if s[0] == "0" and s[1] == "0":
        break
    if int(s[0]) > int(s[1]):
        x = s[1]
        y = s[0]
    else:
        x = s[0]
        y = s[1]
    print(x, y)
    num += 1

Solution (Python):
while(True):
    sc = input().split()
    x = int(sc[0])
    y = int(sc[1])
    if (x == 0) and (y == 0):
        break;
    if x < y:
        print(x, y)
    else:
        print(y, x)

Solution (Python):
while True:
    a,b = map(int,input().split())
    if a == b == 0:
        break
    if a > b:
        print(b,a)
    else:
        print(a,b)

Solution (Python):
while True :
    x,y = map(int,input().split())
    if x == y and x == 0 : break
    elif x > y : 
        print(f"{y} {x}")
    elif x < y :
        print(f'{x} {y}')
    else :
        print(f'{x} {y}')

Solution (Python):


while True:
    x, y = list(map(int, input().split()))
    if x == 0 and y == 0:
        break
    if x > y:
        x, y = y, x
    print(x, y)

Solution (Python):
while True:
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    if a > b:
        a, b = b, a
    print('{} {}'.format(a, b))