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



Sample input:
3 2
2 2
5 3
0 0


Sample output:
2 3
2 2
3 5

Submission status: Wrong Answer

Solution code:
while True:
	t = input().split()
	a = int(t[0])
	b = int(t[1])
	if (a == 0 and b == 0):
		break
	else:
		t.sort()
		print(' '.join(map(str, t)))

Submission status: Wrong Answer

Solution code:
while True:
	t = input().split()
	a = int(t[0])
	b = int(t[1])
	if (a == 0 and b == 0):
		break
	t.sort()
	print(' '.join(map(str, t)))

Submission status: Wrong Answer

Solution code:
a,b = sorted(map(int, raw_input().split(' ')))
if a or b:
    print a, b

Submission status: Wrong Answer

Solution code:
x = 10
y = 10
i = 1
while x != 0 and y != 0:
 n = map(int,raw_input().split())
 x = n[0]
 y = n[1]
 if x == 0 and y == 0:
  break
 if x >= y:
  print y,x
 else:
  print x,y
 i = i + 1

Submission status: Wrong Answer

Solution code:
while 1:
  x,y = map( int , raw_input().split() )
  if x == 0 and y == 0:
    break
  elif x < y:
    print "%d %d" %(x,y) 
  elif y < x : 
    print "%d %d" %(y,x)

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input().split())
if a < b:
    print '%s %s' % (b, a)
else:
    print '%s %s' % (a, b)

Submission status: Wrong Answer

Solution code:
while True:
    a, b = map(int, raw_input().split())
    if a == 0 and b == 0:
        break
    if a < b:
        print '%s %s' % (b, a)
    else:
        print '%s %s' % (a, b)

Submission status: Wrong Answer

Solution code:

while 1:
   x, y = map(int, raw_input().split())
   if x <= y:
      print x, y
   if y < x:
      print y, x
   if x == y == 0:
      break

Submission status: Wrong Answer

Solution code:
while 1:
   x, y = map(int, raw_input().split())
   if x <= y:
      print x, y
   if y < x:
      print y, x
   if x == y == 0:
      break

Submission status: Wrong Answer

Solution code:
while 1:
   x, y = map(int, raw_input().split())
   if x <= y:
      print 'x', 'y'
   if y < x:
      print 'y', 'x'
   if x == y == 0:
      break

Submission status: Wrong Answer

Solution code:
while 1:
   x, y = map(int, raw_input().split())
   if x <= y:
      print x,y
   if y < x:
      print y,x
   if x == y == 0:
      break

Submission status: Wrong Answer

Solution code:
while 1:
   x, y = map(int, raw_input().split())
   if x <= y:
      print 'x y'
   if y < x:
      print 'y x'
   if x == y == 0:
      break

Submission status: Wrong Answer

Solution code:
while 1:
   x, y = map(int, raw_input().split())
   if x <= y:
      print 'x y'
      if x == y == 0:
         break
   if y < x:
      print 'y x'

Submission status: Wrong Answer

Solution code:
while 1:
   x, y = map(int, raw_input().split())
   if x == 0 and y == 0:
      break
   if x < y:
      print "%d %d" %(x, y)
   if x > y:
      print "%d %d" %(y, x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
data = [int(x) for x in input().split()]
while(data[0] != 0 and data[1] != 0):
    data.sort()
    print(data[0], data[1])
    data = [int(x) for x in input().split()]

Submission status: Wrong Answer

Solution code:
n = -100, -100

while n[0] != 0 and n[1] != 0:
   n = map( int, raw_input().split())
   if n[0] != 0 and n[1] != 0:
      print min(n[0],n[1]),max(n[0],n[1])

Submission status: Wrong Answer

Solution code:
while 1:
    x, y = map(int, raw_input().split())
    if x == 0 and y == 0:
        break
    print min(x, y)

Submission status: Wrong Answer

Solution code:
a = map(int, raw_input().split())
a.sort()
print '%d %d' % (a[0], a[1])

Submission status: Wrong Answer

Solution code:
x = []
y = []
i = 0

while True:
  a, b = map(int, raw_input().split())
  if b < a:
    stock = a
    a = b
    b = stock
  x.append(a)
  y.append(b)
  if x[i] == 0 and y[i] == 0:
    break
  i += 1

for j in range(i):
  print(str(x[j]), str(y[j]))

Submission status: Wrong Answer

Solution code:
while True:
    Num = map(int, raw_input().split())
    a = Num[0]
    b = Num[1]
    Max = max(a, b)
    Min = min(a, b)

    if a == 0 and b == 0:
        break
    else:
        print "%d %d" %(Max, Min)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while 1:
	x, y = tuple(input().split())
	if x == '0' and y == '0':
		break
	else:
		print(y, x)

Submission status: Wrong Answer

Solution code:
while 1:
	x, y = sorted(tuple(input().split()))
	if x == '0' and y == '0':
		break
	else:
		print(x, y)

Submission status: Wrong Answer

Solution code:
#coding: UTF-8

l = raw_input().split()

l.sort() 

a = int(l[0])
b = int(l[1])

while a != 0 and b !=0:



	print "%d %d" %(a,b)

	l = raw_input().split()

	l.sort() 
	a = int(l[0])
	b = int(l[1])
	
	if a == 0 and b == 0:
		break

Submission status: Wrong Answer

Solution code:
while True:
	x,y=map(int,input().split())
	if x==0 & y==0:
		break
	else:
		if x>y:
			print(str(y)+" "+str(x))
		else:
			print(str(x)+" "+str(y))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys 
while True:
	x,y = map(int,sys.stdin.readline().split())
	if x==0 & y==0:
		break
	else:
		if x<=y:
			print(x,y)
		else:
			print(y,x)

Submission status: Wrong Answer

Solution code:
import sys 
while True:
	x,y = map(int,sys.stdin.readline().split())
	if x==0 & y==0:
		break
	
	if x<=y:
		print(x,y)
	else:
		print(y,x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
 a,b=map(int,input().split())
 if not(a) and not(b):break
 print(b,a)

Submission status: Wrong Answer

Solution code:
for x, y in (i.split() for i in iter(input, "0 0")):
  print (y, x) if x > y else print (x, y)

Submission status: Wrong Answer

Solution code:
#coding:utf8

while True:
	n = map(int,raw_input().split(' '))
	n.sort()
	
	x = n[0]
	y = n[1]
	print x,y
	
	if x == 0 and y == 0:
		break

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

import sys

for line in sys.stdin:
    if line[0] == "0" and line[1] == 0:
        break
    if line[0] <= line[1]:
        print "%s %s" %(line[0], line[1])
    else:
        print "%s %s" %(line[1], line[0])

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

import sys

for line in sys.stdin:
    if line[0] == "0" and line[1] == "0":
        break
    if line[0] <= line[1]:
        print "%s %s" %(line[0], line[1])
    else:
        print "%s %s" %(line[1], line[0])

Submission status: Wrong Answer

Solution code:
d = 0

while d == 0:
    i = raw_input()
    x, y = i.split()
    x = int(x)
    y = int(y)
    
    if x != 0 and y != 0:
        if x > y:
            print("%d %d" %(y,x))
        else:
            print("%d %d" %(x,y))
    else:
        d = 2

Submission status: Wrong Answer

Solution code:
while True:
    a, b = map(int, raw_input().split())
    if a==0 and b==0:
        break
    elif a > b:
        print "%d %d" %(a,b)
    else:
        print "%d %d" %(a,b)

Submission status: Wrong Answer

Solution code:
while 1:
    line=map(int,raw_input().split())
    if all(line)==0:
        break
    op=sorted(line)
    print op[0],op[1]

Submission status: Wrong Answer

Solution code:
while 1:
    line=map(int,raw_input().split())
    if line==[0,0]:
        break
    else:
        op=sorted(line)
        print line[0],line[1]

Submission status: Wrong Answer

Solution code:
input_array=[]

while True:
    a, b = [int(x) for x in raw_input().split(" ")]

    if a == 0 and b == 0:
        break
    elif a > b:
        tmp = a
        a = b
        b = a

    input_num = str(a) + " " + str(b)
    input_array.append(input_num)

for x in range(0,len(input_array)):
    print(input_array[x])

Submission status: Wrong Answer

Solution code:
# coding:utf-8
# ??\??????????????´??°????°???????????????????

i = 1
x = 1
while x != 0:
    xy = raw_input().split()
    x = int(xy[0])
    y = int(xy[1])
    if x == 0 and y ==0:
        break
    if x < y :
        print x,y
    else:
        print y,x

Submission status: Wrong Answer

Solution code:
import sys

while 1:
    x = sys.stdin.readline().strip()
    x_list = x.split(" ")
    
    if x_list[0] == "0" and x_list[1] == "0" :
        break
    
    x_list.sort()
    print(x_list[0],x_list[1])

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
def main():  
	nums = input().split(" ")
	nums.sort(key = int)
	print(" ".join(nums))
if __name__ == '__main__':
  main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while 1:
  x, y = map(int, raw_input().split())
  if x and y == 0:
    break
  if x > y:
    print '{0} {1}'.format(y, x)
  else:
    print '{0} {1}'.format(x, y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    else:
        a = [x, y]
        a.sort()
        print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
while True :
	line = list( map(int, input().split(' ')))

	line.sort()

	if(line[0] == 0) :
		break;
	print('{0} {1}'.format(line[0], line[1]))

Submission status: Wrong Answer

Solution code:
while 1:
    a, b = map(int, input().split())
    if a == b == 0: break
    print("{} {}".format(b, a))

Submission status: Wrong Answer

Solution code:
while 1:
    a, b = map(int, input().split())
    if a == 0 and b == 0: break
    print("{} {}".format(b, a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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)

Submission status: Wrong Answer

Solution code:
x ,y = [int(i) for i in input().split()]
if x <= y:
    print(x,' ',y,sep='')
else:
    print(y,' ',x,sep=' ')

Submission status: Wrong Answer

Solution code:
while True:
    x, y = [int(i) for i in input().split()]

    if x == y == 0:
        break

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

print(x, y)

Submission status: Wrong Answer

Solution code:
a=[]
while True:
    if all([int(x) for x in input().split()]):
        break
    else:
        [a,b]=sorted([int(x) for x in input().split()])
        print("a b c")

Submission status: Wrong Answer

Solution code:
while True:
    a = input()
    b = a.split(' ')
    b.sort()
    if int(b[0]) == 0 and int(b[1]) == 0:
        break
    print('%s %s' % (b[0],b[1]))

Submission status: Wrong Answer

Solution code:
import sys

n = sys.stdin.readlines()
for i in n:
    a = [int(x) for x in i.split()]
    if a[0] == a[1]:
        break
    print(*sorted(a))

Submission status: Wrong Answer

Solution code:
import sys

n = sys.stdin.readlines()
for i in n:
    a, b = [int(x) for x in i.split()]
    if a == 0 and b == 0:
        break
    if a > b:
        print('{} {}'.format(a, b))
    else:
        print('{} {}'.format(b, a))

Submission status: Wrong Answer

Solution code:
while True:
	n,k = map(int, raw_input().split())
	if 0==n and 0==k:
		break
	print k,n

Submission status: Wrong Answer

Solution code:
while 1:
 a,b=map(int,input().split())
 if a+b==0:
  break
 elif a>b:
  print(b,a)
 print(a,b)

Submission status: Wrong Answer

Solution code:
l=raw_input().split()

l.sort()
print l[0],l[1]

Submission status: Wrong Answer

Solution code:
l=raw_input().split()

if l[0]==0 and l[1]==0:
    print "0 0"

l.sort()
print l[0],l[1]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    m = map(int,raw_input().split())
    if m[0] == 0 and m[1] == 0:
        break
    if m[0] >= m[1]:
        print(m[0],m[1])
    else:
        print(m[1],m[0])

Submission status: Wrong Answer

Solution code:
while True:
    m = map(int,raw_input().split())
    if m[0] == 0 and m[1] == 0:
        break
    if m[0] >= m[1]:
        print m[0],m[1]
    else:
        print m[1],m[0]

Submission status: Wrong Answer

Solution code:
while True:
    m = map(int,raw_input().split())
    if m[0] == 0 and m[1] == 0:
        break
    if m[0] >= m[1]:
        print(m[1],m[0])
    else:
        print(m[0],m[1])

Submission status: Wrong Answer

Solution code:
while True:
    x = input().split()
    x_int = [int(i) for i in x]
    if x_int[0] == 0 and x_int[1] == 0:
        break
    else:
        print('{} {}'.format(x_int[1],x_int[0]))

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        tokens = line.strip().split()
        a, b = int(tokens[0]), int(tokens[1])
        if a <= b:
            print '%d %d' % (a, b)
        elif b < a:
            print '%d %d' % (b, a)

Submission status: Wrong Answer

Solution code:
# coding: utf-8

x,y=map(int,input().split())

while x!=0 and y!=0:
    if x>y:
        x,y=y,x
    print(str(x)+" "+str(y))

    x,y=map(int,input().split())

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
	lis = []
	while True:
		a, b = [ i for i in input().split() ]
		if a == b == '0':
			break
		lis.append([a,b])
	for j in lis:
		j.sort()
		print(' '.join(j))

Submission status: Wrong Answer

Solution code:
l = []
cnt = 0
while 1:
    x = input()
    if x == '0 0':
        break
    l.append(x)
    cnt += 1
for i in range(cnt):
    f = l[i].split()
    f.sort()
    print(f[0],f[1],sep=' ')
    f = []

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input().split())
print min(a,b), max(a,b)

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
if x < y:
    print("%d %d" % (x, y))
else:
    print("%d %d" % (y, x))

Submission status: Wrong Answer

Solution code:
'''
ITP-1_3-C
 2 ????????°?????????
???????????´??° x, y ?????????????????????????????????????°?????????????????????????????????°?????????????????????????????????
?????????????????????????????\?????????????????????????????????????????????????????????????????????????????¨?????¨?????????????????????
???Input
??\???????????°????????????????????????????§?????????????????????????????????????????????????????????§??????????????????????????´??° x, y ?????????
?????????????§?????????????????????????
???Output
??????????????????????????¨??????x ??¨ y ????°????????????????????????????????????????????????????????????????x ??¨ y ????????????????????????????????\??????????????????
'''
# import
import sys

# input???????????????
for inputData in sys.stdin:
    inputData = inputData.split(" ")
    inputData01, inputData02 = int(inputData[0]), int(inputData[1])
    # 0?????´??? ????????????
    if inputData01 == 0:
        if inputData02 == 0:
            break

    if inputData01 > inputData02:
        outputData01 = inputData02
        outputData02 = inputData01
    elif inputData01 < inputData02:
        outputData01 = inputData01
        outputData02 = inputData02

    # ????????????
    print((outputData01),(outputData02))

Submission status: Wrong Answer

Solution code:
'''
ITP-1_3-C
 2 ????????°?????????
???????????´??° x, y ?????????????????????????????????????°?????????????????????????????????°?????????????????????????????????
?????????????????????????????\?????????????????????????????????????????????????????????????????????????????¨?????¨?????????????????????
???Input
??\???????????°????????????????????????????§?????????????????????????????????????????????????????????§??????????????????????????´??° x, y ?????????
?????????????§?????????????????????????
???Output
??????????????????????????¨??????x ??¨ y ????°????????????????????????????????????????????????????????????????x ??¨ y ????????????????????????????????\??????????????????
'''
# import
import sys

# input???????????????
for inputData in sys.stdin:
    inputData = inputData.split(" ")
    inputData01, inputData02 = int(inputData[0]), int(inputData[1])
    # 0?????´??? ????????????
    if inputData01 == 0:
        if inputData02 == 0:
            break

    if inputData01 > inputData02:
        outputData01 = inputData02
        outputData02 = inputData01
    elif inputData01 < inputData02:
        outputData01 = inputData01
        outputData02 = inputData02

    # ????????????
    print((outputData01), (outputData02))

Submission status: Wrong Answer

Solution code:
x=[]
y=[]
while True:
    i,j=map(int,raw_input().split())
    if i==0&j==0:
        break;
    x.append(i)
    y.append(j)
X=iter(x)
Y=iter(y)

for a in X:
    b=Y.next()
    if a<b:
        print('%d %d'%(a,b))
    else:
        print('%d %d'%(b,a))

Submission status: Wrong Answer

Solution code:
x,y=input().split()
while (x!='0'and y!='0'):
    if(x>y):print("{} {}".format(y,x))
    else:print("{} {}".format(x,y))
    x,y=input().split()

Submission status: Wrong Answer

Solution code:
x,y=input().split()
while (x!='0'or y!='0'):
    if(x>y):print("{} {}".format(y,x))
    else:print("{} {}".format(x,y))
    x,y=input().split()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
dataset = []
while True:
    x, y = map(int, input().split())
    if not(x >= 0 and x <= 10000) and (y >= 0 and y <= 10000):
        break
    elif (x is not 0) and (y is not 0): 
        listed = []
        listed.append(x)
        listed.append(y)
        dataset.append(listed)
        if len(dataset) > 3000:
            break
    else:
        break

for i in dataset:
    min = i[0]
    max = i[0]
    if i[0] > i[1]:
        min = i[1]
        max = i[0]
    elif i[0] < i[1]:
        min = i[0]
        max = i[1]
    print("{0} {1}".format(str(min), str(max)))

Submission status: Wrong Answer

Solution code:
dataset = []
while True:
    x, y = map(int, input().split())
    if not((x >= 0 and x <= 10000) and (y >= 0 and y <= 10000)):
        break
    elif (x is not 0) and (y is not 0): 
        listed = []
        listed.append(x)
        listed.append(y)
        dataset.append(listed)
        if len(dataset) > 3000:
            break
    else:
        break

for i in dataset:
    min = i[0]
    max = i[0]
    if i[0] > i[1]:
        min = i[1]
        max = i[0]
    elif i[0] < i[1]:
        min = i[0]
        max = i[1]
    print("{0} {1}".format(str(min), str(max)))

Submission status: Wrong Answer

Solution code:
dataset = []
while True:
    x, y = map(int, input().split())
    if not((x >= 0 and x <= 10000) and (y >= 0 and y <= 10000)):
        break
    elif (x is not 0) and (y is not 0): 
        listed = []
        listed.append(x)
        listed.append(y)
        dataset.append(listed)
        if len(dataset) >= 3000:
            break
    else:
        break

for i in dataset:
    if i[0] > i[1]:
        print("{0} {1}".format(str(i[1]), str(i[0])))
    elif i[0] < i[1]:
        print("{0} {1}".format(str(i[0]), str(i[1])))
    else:
        print("{0} {1}".format(str(i[0]), str(i[1])))

Submission status: Wrong Answer

Solution code:
dataset = []
while True:
    x, y = map(int, input().split())
    if (x is not 0) and (y is not 0): 
        listed = []
        listed.append(x)
        listed.append(y)
        dataset.append(listed)
        if len(dataset) >= 3000:
            break
    elif not((x >= 0 and x <= 10000) and (y >= 0 and y <= 10000)):
        break
    else:
        break

for i in dataset:
    if i[0] > i[1]:
        print("{0} {1}".format(str(i[1]), str(i[0])))
    elif i[0] < i[1]:
        print("{0} {1}".format(str(i[0]), str(i[1])))
    else:
        print("{0} {1}".format(str(i[0]), str(i[1])))

Submission status: Wrong Answer

Solution code:
import sys
for i in sys.stdin.readlines() :
    l = i.split()
    a = int(l[0])
    b = int(l[1])
    if a == 0 and b == 0 :
        break
    else :
        sorted(l)
        print(l[0],l[1])

Submission status: Wrong Answer

Solution code:
import sys
for i in sys.stdin.readlines() :
    l = i.split()
    sorted(l)
    if l[0] == 0 and l[1] == 0 :
        break
    else :
        print(l[0],l[1])

Submission status: Wrong Answer

Solution code:
import sys
for i in sys.stdin.readlines() :
    l = i.split()
    sorted(l)
    if l[0] == 0 and l[1] == 0 :
        print(l[0],l[1])
        break
    else :
        print(l[0],l[1])

Submission status: Wrong Answer

Solution code:
import sys
for i in sys.stdin.readlines() :
    l = i.split()
    sorted(l)
    if l[0] == 0 and l[1] == 0 :
        print(l[0],l[1])
    else :
        print(l[0],l[1])

Submission status: Wrong Answer

Solution code:
import sys
for i in sys.stdin.readlines() :
    l = i.split()
    a = l[0]
    b = l[1]
    if a == 0 and b == 0 :
        break
    elif a > b :
        print(b,a)
    else :
        print(a,b)

Submission status: Wrong Answer

Solution code:
import sys
while True :
    ab = sys.stdin.readline().split()
    a = int(ab[0])
    b = int(ab[1])
    if a == 0 and b == 0 :
        break
    else :
        #sorted(ab)
        #print(ab[0],ab[1])
        pass

Submission status: Wrong Answer

Solution code:
import sys
while True :
    ab = sys.stdin.readline().split()
    a = int(ab[0])
    b = int(ab[1])
    if a == 0 and b == 0 :
        break
    else :
        sorted(ab)
        print(ab[0],ab[1])

Submission status: Wrong Answer

Solution code:
import sys
while True :
    ab = list(map(int,sys.stdin.readline().split()))
    a = ab[0]
    b = ab[1]
    if a == 0 and b == 0 :
        break
    else :
        sorted(ab)
        print(ab[0],ab[1])

Submission status: Wrong Answer

Solution code:
def method(a,b):
    if(a<b):
        print a,b
    else:
        print b,a

a,b=map(int,raw_input().split())
while a!=0 and b!=0:
    method(a,b)
    a,b=map(int,raw_input().split())

Submission status: Wrong Answer

Solution code:
num = []
while True:
    n = input()
    a, b = [int(x) for x in n.split()]
    if a == 0 and b == 0:
        break
    num.append([a, b])

for ls in num:
    ls.sort()
    print(ls)

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-
import sys

array = []
for i in sys.stdin:
    array.append(i)

for i in range(len(array)):
    x,y = array[i].split()
    y,x = x,y

    print(x,y)

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-

import sys

array = []
for i in sys.stdin:
    array.append(i)

    
for i in range(len(array)):
    x,y = array[i].split()
    y,x = x,y

    print(x,y)

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-
import sys

array = []
for i in sys.stdin:
    array.append(i)

for i in range(len(array)):
    x,y = array[i].split()
    y,x = x,y
    print(x,y)

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-
import sys

array = []
for i in sys.stdin:
    array.append(i)

for i in range(len(array)):
    x,y = array[i].split()
    if x == 0 and y == 0:
        break
    y,x = x,y
    print(x,y)

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-
import sys

array = []
for i in sys.stdin:
    array.append(i)

for i in range(len(array)):
    x,y = array[i].split()
    if x == 0 and y == 0:
        break
    elif x > y:
        y,x = x,y
    print(x,y)

Submission status: Wrong Answer

Solution code:
# -*- coding:utf-8 -*-
import sys

array = []
x,y = [],[]
for i in sys.stdin:
    array.append(i)
    if i == '0 0\n':
        break
    
for i in range(len(array)):
    x,y = array[i].split()
    if int(x) == 0 and int(y) == 0:
        break
    elif x > y:
        y,x = x,y
    print(x,y)

Submission status: Wrong Answer

Solution code:
while 1:
    x, y = map(int, raw_input().split())
    if x and y == 0:
        break
    if x <= y :
        print '%s %s' % (x, y)
    else:
        print '%s %s' % (y, x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x,y = input().split()
x = int(x)
y = int(y)
i = 0
if x > y:
    i = x
    x = y
    y = i

fmt = "{a} {b}"
s = fmt.format(a = x,b = y)
print(s)

Submission status: Wrong Answer

Solution code:
x,y = input().split()
x = int(x)
y = int(y)
i = 0
if x == 0 and y == 0:
    if x > y:
        i = x
        x = y
        y = i

    fmt = "{a} {b}"
    s = fmt.format(a = x,b = y)
    print(s)

Submission status: Wrong Answer

Solution code:
x,y = input().split()
x = int(x)
y = int(y)
i = 0
if x != 0 and y != 0:
    if x > y:
        i = x
        x = y
        y = i

    fmt = "{a} {b}"
    s = fmt.format(a = x,b = y)
    print(s)

Submission status: Wrong Answer

Solution code:
while 1:
    x,y=map(int,input().split())
    if x==0:break
    print(*[y,x] if x>y else [x,y])

Submission status: Wrong Answer

Solution code:
a = input().split()
swap = 0

if int(a[0]) < int(a[1]) :
    swap = a[0]
    a[0] = a[1]
    a[1] = swap

if int(a[0]) == 0 and int(a[1]) == 0 :
    exit()

print ('%s %s' % (a[0], a[1]))

Submission status: Wrong Answer

Solution code:
a = input().split()
swap = 0

if int(a[0]) > int(a[1]) :
    swap = a[0]
    a[0] = a[1]
    a[1] = swap

if int(a[0]) == 0 and int(a[1]) == 0 :
    exit()

print ('%s %s' % (a[0], a[1]))

Submission status: Wrong Answer

Solution code:
a = input().split()
swap = 0

if int(a[0]) > int(a[1]) :
    swap = a[0]
    a[0] = a[1]
    a[1] = swap


print ('%s %s' % (a[0], a[1]))

if int(a[0]) == 0 and int(a[1]) == 0 :
    exit()

Submission status: Wrong Answer

Solution code:
import sys
 
a = []
for line in sys.stdin:
    x,y = map(int,line.split(" "))
    if x == 0 and y == 0:
      break
    a.append((x,y))
 
for x,y in a:
  print "%s %s" %(y,x)

Submission status: Wrong Answer

Solution code:
import sys
  
a = []
for line in sys.stdin:
    x,y = map(int,line.split(" "))
    if x == 0 and y == 0:
      break
    a.append((x,y))
  
for x,y in a:
  print "%s %s" %(y,x)

Submission status: Wrong Answer

Solution code:
import sys
  
a = []
for line in sys.stdin:
    x,y = map(int,line.split(" "))
    if x == 0 and y == 0:
      break
    item = [x,y]
    item.sort
    a.append(item)
  
for x,y in a:
  print "%s %s" %(x,y)

Submission status: Wrong Answer

Solution code:
import fileinput

for line in fileinput.input():
    tokens = list(map(int, line.strip().split()))
    tokens.sort()
    a, b = tokens[0], tokens[1] 
    if a == 0 and b == b:
        break
    else:
        print(a, b)

Submission status: Wrong Answer

Solution code:
def sort_two_numbers(a, b): 
    """ 
    a: int
    b: int
    returns a sorted list

    >>> sort_two_numbers(1, 3)
    [1, 3]
    >>> sort_two_numbers(3, 1)
    [1, 3]
    """
    result = []
    
    if a < b:
        result.append(a)
        result.append(b)
    else:
        result.append(b)
        result.append(a)

    return result

if __name__ == '__main__':
#    import doctest
#    doctest.testmod()

    while True:
        try:
            (a, b) = input().split(' ')
            print('{0[0]} {0[1]}'.format(sort_two_numbers(int(a), int(b))))
        except EOFError:
            break

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3

def string_two_numbers_spliter():
    x, y = [int(i) for i in input().split()]
    return x, y


def swap_two_numbers_asc(x, y):
    if x > y:
        x, y = y, x
    return x, y


def main():
    while True:
        x, y = string_two_numbers_spliter()
        swap_two_numbers_asc(x, y)
        if x == 0 and y == 0:
            break
        print('%d %d' % (x, y))


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
#!usr/bin/env python3

def string_two_numbers_spliter():
    x, y = [int(i) for i in input().split()]
    return x, y


def swap_two_numbers_asc(x, y):
    print('before swap in func: ', x, y)
    x, y = y, x
    print('after swap in func: ', x, y)
    return x, y


def main():
    while True:
        x, y = string_two_numbers_spliter()
        print('after split: ', x, y)
        if x == 0 and y == 0:
            print('x = 0, y = 0: ', x, y)
            break
        if x > y:
            print('before swap: ', x, y)
            x, y = swap_two_numbers_asc(x, y)
            print('after swap: ', x, y)
        print('%d %d' % (x, y))


if __name__ == '__main__':
    main()