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:
#!usr/bin/env python3

def string_two_numbers_spliter():
    x, y = [int(i) for i in input('Enter two numbers concatenated ' +
    'by a single space between them, e.g. \'1 2\': ').split()]
    return x, y


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


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


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    x=list(map(int,input().split()))
    if x[0]==0 & x[1]==0:
        break
    x.sort()
    print (x[0],x[1],sep=" ")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while 1:
    line = raw_input()
    words = line.split()
    x = words[0]
    y = words[1]
    if (x == '0') and (y == '0'):
        break
    elif x > y:
        print(y + " " + x)
    else:
        print(x + " " + y)

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    while True:
        x,y = map(int,input().split())
        if x is not 0 and y is not 0 :
            if x > y:
                tmp = x
                x = y
                y = tmp
            print("%d %d"%(x,y))
        else:
            break

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

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

Submission status: Wrong Answer

Solution code:
import sys

while True:
    x = sys.stdin.readline().split()
    a, b = map(int, x)
    if a == 0 & b == 0:
        break
    if a < b:
        print(a, b)
    else:
        print(b, a)

Submission status: Wrong Answer

Solution code:
a=[]
while True:
    m,n=input().split()
    if m==n=="0":
        break
    else:
        a.append(sorted([int(m),int(n)]))
print(a)
for i in range(len(a)):
    print("{0} {1}".format(a[i][0],a[i][1]))

Submission status: Wrong Answer

Solution code:
import sys
while True:
    a, b = sys.stdin.readline().strip().split()
    if a == b == '0':
        break
    print(b, a)

Submission status: Wrong Answer

Solution code:
while True:
    a, b = input().split()
    if a == b == '0':
        break
    print(b, a)

Submission status: Wrong Answer

Solution code:
while True:
    a, b = input().split()
    if a == b == '0':
        break
    if a > b:
        print(b, a)
    else:
        print(a, b)

Submission status: Wrong Answer

Solution code:
x = input().split()

while True :
    if x[0] == x[1] == '0' :
        break
    x.sort()
    print('{} {}'.format(x[0], x[1]))
    x = input().split()

Submission status: Wrong Answer

Solution code:
x = input().split()

while True :
    if x[0] == x[1] == '0' :
        break
    x.sort()
    print('{} {}'.format(int(x[0]), int(x[1])))
    x = input().split()

Submission status: Wrong Answer

Solution code:
x = input().split()

while True :
    if x[0] == x[1] == '0' :
        break
    x.sort()
    print(x[0], x[1])
    x = input().split()

Submission status: Wrong Answer

Solution code:
x = input().strip().split()

while True :
    if x[0] == x[1] == '0' :
        break
    x.sort()
    print(x[0], x[1])
    x = input().strip().split()

Submission status: Wrong Answer

Solution code:
x = input().split()

while True :
    if x[0] == x[1] == '0' :
        break
    x.sort()
    print(x[0], x[1],end='\n')
    x = input().split()

Submission status: Wrong Answer

Solution code:
x = input().split()

while True :
    if x[0] == x[1] == '0' :
        break
    x.sort()
    temp = x[0] + ' ' + x[1]
    print(temp)
    x = input().split()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import sys
import math
for i in sys.stdin.readlines():
    i = i.split()
    if i[0] == "0" and i[1] == "0":
        break
    print(str(min(i))+" "+str(max(i)))

Submission status: Wrong Answer

Solution code:
import sys
import math
for i in sys.stdin.readlines():
    i = i.rstrip()
    i = i.split()
    if i[0] == "0" and i[1] == "0":
        break
    print(str(min(i))+" "+str(max(i)))

Submission status: Wrong Answer

Solution code:
a = []
b = []
while True:
    x,y = map(int,input().split())
    if x == 0 and y == 0:
        break
    else:
        a.append(x)
        b.append(y)
        
for i in range(0,len(a)):
    if a[i] >= b[i]:
        print(a[i],b[i])
    elif a[i] < b[i]:
        print(b[i],a[i])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    x, y = map(int, 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:
a = []
i = 0
while True:
    n = input()
    if n == "0 0":
        break
    a.append(n)
    i += 1
    print("Case {0}: {1}".format(i,n))

Submission status: Wrong Answer

Solution code:
while True:
    n = input().split()
    if n[0]== "0" and n[1]== "0":
        break
    n.sort()
    print("{0} {1}".format(n[0],n[1]))

Submission status: Wrong Answer

Solution code:
while 1:
    x,y = [int(i) for i in input().split()]
    if (x == 0 and y == 0):
        break
    print(str(x)+" "+str(y))

Submission status: Wrong Answer

Solution code:
A=1
B=1
x=[]
while True:
    if A==0 and B==0:
        break
    else:
        A, B= map(int, input().split())
        if A > B:
            print(B,A)
        else:
            print(A,B)

Submission status: Wrong Answer

Solution code:
newArray = []

x, y = input().split()

while x != "0" and y != "0":    
    newArray.append([x, y])
    x, y = input().split()

for i in range(len(newArray)):
    print(newArray[i][1] + " " + newArray[i][0])

Submission status: Wrong Answer

Solution code:

newArray = []

x, y = input().split()

while x != "0" and y != "0":
    if x < y or x == y:
        pass
    else:
        w = x
        x = y
        y = w
    newArray.append([x, y])
    x, y = input().split()

for i in range(len(newArray)):
    print(newArray[i][0] + " " + newArray[i][1])

Submission status: Wrong Answer

Solution code:
newArray = []

x, y = input().split()

while x + y != "00":
    if x < y or x == y:
        newArray.append([x, y])
    else:
        newArray.append([y, x])
    x, y = input().split()

for i in range(len(newArray)):
    print(newArray[i][0] + " " + newArray[i][1])

Submission status: Wrong Answer

Solution code:
while True:
    a = [int(i) for i in input().split(" ")]
    num1 = a[0]
    num2 = a[1]
    if num1 <= num2:
        print(num1,num2)
    elif num1 > num2:
        print(num2,num1)
    if num1 == 0 and num2 == 0:
        break

Submission status: Wrong Answer

Solution code:
str_num = input()
while str_num != "0 0":
    num = str_num.split(" ")
    print("{} {}".format(num[0],num[1]))
    str_num = input()

Submission status: Wrong Answer

Solution code:
str_num = input()
while str_num != "0 0":
    num = sorted(str_num.split(" "))
    print("{} {}".format(num[0],num[1]))
    str_num = input()

Submission status: Wrong Answer

Solution code:
import sys

while(True):
    x,y = map(int, sys.stdin.readline().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:
while True:
    x, y = map(int, input().split())
    if x == 0 or y == 0:
        break
    if x > y:
        x, y = y, x
    print(x, y)

Submission status: Wrong Answer

Solution code:
while True:
    x, y = [int(n) for n in input().split()]
    if x or y:
        break
    if x > y:
        print(x, y)
    else:
        print(y, x)

Submission status: Wrong Answer

Solution code:
while True:
    x, y = [int(n) for n in input().split()]
    if x or y:
        break
    if x < y:
        print(x, y)
    else:
        print(y, x)

Submission status: Wrong Answer

Solution code:
import sys

while 1:
  str = sys.stdin.readline().strip()
  if str=="0 0":
    break

Submission status: Wrong Answer

Solution code:
import sys

while 1:
  str = sys.stdin.readline().strip()
  if str=="0 0":
    break
  print(sorted(str.split(" "), key=int))

Submission status: Wrong Answer

Solution code:
import sys

while 1:
  a , b = map(int, sys.stdin.readline().split())
  break

Submission status: Wrong Answer

Solution code:
import sys

while 1:
  a , b = map(int, sys.stdin.readline().split())
  if a == b == 0:
    break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
input_data = []
m=0
while 1:
	a,b = input().split()

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

	elif a <= b :
		m+=1
		input_data.append(a)
		input_data.append(b)
	else :
		m+=1
		input_data.append(b)
		input_data.append(a)

n=0
			
for i in range(m):
	print(input_data[n],input_data[n+1])
	n+=2

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    s=input().rstrip().split()
    s.sort()
    if (s[0]=='0')& (s[1]=='0'):
        break
    print(s[0],s[1])

Submission status: Wrong Answer

Solution code:
while True:
    s=input().rstrip().split()
    s.sort()
    if (s[0]=='0') & (s[1]=='0'):
        break
    print(s[0]+" "+s[1])

Submission status: Wrong Answer

Solution code:
for i in range(3000):
  x,y=map(int,input().split())
  if x == 0 and y == 0:
   break
  print('{0} {1}'.format(x,y))

Submission status: Wrong Answer

Solution code:
for i in range(3000):
  x,y=map(int,input().split())
  if x == 0 and y == 0:
    break
  print('{0} {1}'.format(x,y))

Submission status: Wrong Answer

Solution code:
for i in range(3000):
  y,x=map(int,input().split())
  if x == 0 and y == 0:
    break
  print('{0} {1}'.format(x,y))

Submission status: Wrong Answer

Solution code:
for i in range(3000):
  x,y=map(int,input().split())
  if x == 0 and y == 0:
     break
  print('{0} {1}'.format(y,x))

Submission status: Wrong Answer

Solution code:
for i in range(3000):
  x,y=map(int,input().split())
  if x == 0 and y == 0:
    break
  print('{0} {1}'.format(y,x))

Submission status: Wrong Answer

Solution code:
a = 1
b = 1
while not( a == 0 and a == b):
 [a, b] = map(int, input().split())
 if min(a,b) <b:
  print(a,b)
 if min(a,b) <a:
  print(b,a)

Submission status: Wrong Answer

Solution code:
[a, b] = map(int, input().split())

while not( a == 0 and a == b):

    if a <b:
        print(a,b)
    if b <a:
        print(b,a)
    [a,b] = map(int, input().split())

Submission status: Wrong Answer

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

if x==0 and y==0:
 brake
 print(sort(x,y))

Submission status: Wrong Answer

Solution code:
a = input()
b = input()

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

Submission status: Wrong Answer

Solution code:
#! python3

while True:
  [a, b] = [int(x) for x in input().strip().split(' ')]
  if a == 0 and b == 0:
    break
  print(b, a)

Submission status: Wrong Answer

Solution code:
for i in range(3000):
    x,y=[int(s) for s in input().split()]
    if x>y:
        print("{0} {1}".format(y,x))
    elif x<y:
        print("{0} {1}".format(x,y))
    elif x==0 and y==0:
        break

Submission status: Wrong Answer

Solution code:
while True:
    i = input()
    if i == "0 0":
        break
    else:
        i_list = i.split()
        i_list.sort()
        print(i_list[0],i_list[1])

Submission status: Wrong Answer

Solution code:
while True:
    i = input()
    if i == "0 0":
        break
    else:
        i_list = i.split()
        int(i_list[0])
        int(i_list[1])
        i_list.sort()
        print(i_list[0],i_list[1])

Submission status: Wrong Answer

Solution code:
import sys
for i in sys.stdin:
    x = i.split()
    x.sort()
    if ((x[0]=='0') and (x[1]=='0')): break
    print(x[0] + " " + x[1])

Submission status: Wrong Answer

Solution code:
for i in range(1000):
    i=input()
    x=i.split()
    x.sort()
    if((x[0]=='0')and(x[1]=='0')): break
    print(x[0] + " " + x[1])

Submission status: Wrong Answer

Solution code:
a=[]
for i in range(3000):
    x=input().split()
    if ((x[0]=='0') and (x[1]=='0')): break
    x.sort()
    a.append([x[0],x[1]])
for ii in a:
    print(ii[0],ii[1])

Submission status: Wrong Answer

Solution code:
list=[]
x=1
y=1
while  (len(list)-1) < 30000 and (x + y) >0:
    x,y = map(int,input().split())
    if x > y:
        l= [y,x]
    else:
        l=[x,y]
    list.append(l)


for i in range(len(list)-1):
    print(list[i])

Submission status: Wrong Answer

Solution code:
list=[]
x=1
y=1
while  (len(list)-1) < 3000 and (x + y) >0:
    x,y = map(int,input().split())
    if x > y:
        l= [y,x]
    else:
        l=[x,y]
    list.append(l)


for i in range(len(list)-1):
    print(list[i])

Submission status: Wrong Answer

Solution code:
list=[]
x=1
y=1
while (len(list)-1) < 3000 and (x+y)>0:
    x,y = map(int,input().split())
    if x > y:
        l = [y,x]
    else:
        l = [x,y]
    list.append(l)


for i in range(len(list)-1):
    print(list[i])

Submission status: Wrong Answer

Solution code:
import sys
for line in sys.stdin:
    items_sorted = sorted( line.split() , reverse=True )
    print( "{} {}".format( items_sorted[0],items_sorted[1]) )

Submission status: Wrong Answer

Solution code:
list=[]
x=1
y=1
while (len(list)-1) < 3000:
    if x ==0 and y == 0:
        break
    x,y = map(int,input().split())
    if x > y:
        l = [y,x]
    else:
        l = [x,y]
    list.append(l)


for i in range(len(list)-1):
    print(list[i])

Submission status: Wrong Answer

Solution code:
import sys
for line in sys.stdin:
    items = line.split()
    if items[0] == 0 and items[1] == 0:
       break
    items_sorted = sorted( items , reverse=True )
    print( "{} {}".format( items_sorted[0],items_sorted[1]) )

Submission status: Wrong Answer

Solution code:
xy_data=[]
while True:
    xy=list(map(int,input().split()))
    xy.sort()
    print(xy)
    if xy[0]==xy[1]==0:
        break
    else:
        xy_data.append(xy)
for xy in xy_data:
    print(*xy)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
### 17.07.2017
n = []
while (True):
	x = input().split()
	if int(x[0]) == 0 and int(x[1]) == 0:
		break
	n.append(x)
for i in n:
	if i[0] > i[1]:
		print(i[1], i[0])
	else:
		print(i[0], i[1])

Submission status: Wrong Answer

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

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(b,a)
 else:
    print(a,b)

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)
 if a>b:
    print(b,a)
 else:
    print(b,a)

Submission status: Wrong Answer

Solution code:
x = raw_input().split()
if x[0] > x[1]:
    tmp = x[0]
    x[0] = x[1]
    x[1] = tmp
print('%s %s' % (x[0], x[1]))

Submission status: Wrong Answer

Solution code:
while True:
    x = raw_input().split()
    if x[0] == x[1] == '0': break

    if x[0] > x[1]:
        tmp = x[0]
        x[0] = x[1]
        x[1] = tmp
    print('%s %s' % (x[0], x[1]))

Submission status: Wrong Answer

Solution code:
while True:
    x = raw_input().split()
    if x[0] == x[1] == '0': break

    if x[0] > x[1]:
        print('%s %s' % (x[0], x[1]))
    else:
        print('%s %s' % (x[1], x[0]))

Submission status: Wrong Answer

Solution code:
ret = []
while True:
    x = raw_input().split()
    if int(x[0]) == int(x[1]) == 0: break

    if int(x[0]) > int(x[1]):
        ret += ['%s %s' % (x[0], x[1])]
    else:
        ret += ['%s %s' % (x[1], x[0])]

for x in ret:
    print(x)

Submission status: Wrong Answer

Solution code:
while True :
	tmp = input();
	tmp = tmp.split(" ")
	x,y = list(map(int,tmp))
	if x == 0 and y == 0 :
		break;

	x,y = y,x
	print(x,y)

Submission status: Wrong Answer

Solution code:
x = 10000
y = 10000
while x and y:
    x, y = map(int, input().split())
    if x < y:
        print(x, y)
    else:
        print(y, x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
dset = []
while True:
	s = input().split()
	if int(s[0]) == 0 and int(s[1]) == 0:
		break
	else:
		dset.append(s)

for i in dset:
	print(i[1],i[0])

Submission status: Wrong Answer

Solution code:
dset = []
while True:
	s = input().split()
	if int(s[0]) == 0 and int(s[1]) == 0:
		break
	else:
		dset.append(s)

for i in dset:
	print(str(i[1]),str(i[0]))

Submission status: Wrong Answer

Solution code:
dset = []
while True:
	s = input().split()
	if int(s[0]) == 0 and int(s[1]) == 0:
		break
	else:
		dset.append(s)
		s = []

for i in dset:
	print(str(i[1]),str(i[0]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(" ".join(sorted(input().strip(" "))))

Submission status: Wrong Answer

Solution code:
# Aizu Problem ITP_1_3_C: Swapping Two Numbers
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


while True:
    a, b = [int(_) for _ in input().split()]
    if a == b == 0:
        break
    print(b, a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
result_list = []

flag = True
while flag:
	input_list = []
	input_value = input()

	split_input_value = input_value.split()
	input_valueA = int(split_input_value[0])
	input_valueB = int(split_input_value[1])

	if input_valueA == 0 and input_valueB == 0:
		flag = False
		break
	else:
		input_list.append(input_valueA)
		input_list.append(input_valueB)
		input_list.sort()
		result_list.append(input_list)

print(result_list)
for i in range (0, len(result_list)):
	for j in range (0, 2):
		print(result_list[i][j], end=' ')
	print("")

Submission status: Wrong Answer

Solution code:
result_list = []
flag = True
while flag:
	input_list = []
	input_value = input()
	split_input_value = input_value.split()
	input_valueA = int(split_input_value[0])
	input_valueB = int(split_input_value[1])
	if input_valueA == 0 and input_valueB == 0:
		flag = False
		break
	else:
		input_list.append(input_valueA)
		input_list.append(input_valueB)
		input_list.sort()
		result_list.append(input_list)
for i in range (0, len(result_list)):
	for j in range (0, 2):
		print(result_list[i][j], end=' ')

Submission status: Wrong Answer

Solution code:
i = 0

while True:
    i += 1
    x, y = map(int, raw_input().split())
    if x == 0 and y == 0:
        break
    if y < x:
        x, y = y, x

    print('Case {}: {} {}'.format(i, x, y))

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 or x == y:
    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
    
  else:
    print y, x

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = map(int,raw_input().split())
n.sort()
print n[0],n[1]

Submission status: Wrong Answer

Solution code:
result_list = []
flag = True

#Input process
while flag:
	input_list = []
	input_value = input()
	input_value_split = input_value.split()
	input_valueA = int(input_value_split[0])
	input_valueB = int(input_value_split[1])
	if input_valueA == 0 and input_valueB == 0:
		flag = False
	else:
		input_list.append(input_valueA)
		input_list.append(input_valueB)
		input_list.sort()
		result_list.append(input_list[0])
		result_list.append(input_list[1])

#Display process
for i in range (0, len(result_list)-1):
	for j in range (i, i + 2):
		print(result_list[j], end=' ')
	print("")
	i = i + 2

Submission status: Wrong Answer

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

    if x == 0 & y == 0 :
        break
    elif x > y :
        z = x
        x = y
        y = z
        print(str(x) + " " + str(y))
    else :
        print(str(x) + " " + str(y))

Submission status: Wrong Answer

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

    if x == 0 or y == 0 :
        break
    elif x > y :
        z = x
        x = y
        y = z
        print(str(x) + " " + str(y))
    else :
        print(str(x) + " " + str(y))

Submission status: Wrong Answer

Solution code:
print( " ".join( sorted( input().split())))

Submission status: Wrong Answer

Solution code:
while True :
    a = input().split()
    if a[0] == a[1] == "0":
        break
    print( " ".join( sorted(a)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
while True :
    a, b = input().split()
    if a == b == "0" : break
    elif a >= b :
        print(b, a)
    else : print(a,b)

Submission status: Wrong Answer

Solution code:
while True :
    a = input().split()
    if int(a[0]) == 0 and int(a[1]) == 0:
        break
    print( " ".join( sorted(a)))

Submission status: Wrong Answer

Solution code:
idx = 0
I = input().split()
while int(I[idx]) != 0 and int(I[idx]) != 0:
    idx += 2
    I += input().split()

i = 0
while i < idx:
    print(I[i + 1] + ' ' + I[i])
    i += 2

Submission status: Wrong Answer

Solution code:
idx = 0
I = input().split()
while int(I[idx]) != 0 and int(I[idx]) != 0:
    idx += 2
    I += input().split()

i = 0
while i < idx:
    if int(I[i]) > int(I[i + 1]):
        print(I[i + 1] + ' ' + I[i])
    if int(I[i]) < int(I[i + 1]):
        print(I[i] + ' ' + I[i + 1])
    if int(I[i]) == int(I[i + 1]):
        print(I[i] + ' ' + I[i + 1])
    i += 2

Submission status: Wrong Answer

Solution code:
I = input().split()
x = int(I[0])
y = int(I[1])
while x != 0 and y != 0:
    if x < y:
        print(str(x) + ' ' + str(y))
    if x > y:
        print(str(y) + ' ' + str(x))
    if x == y:
        print(str(x) + ' ' + str(y))
    I = input().split()
    x = int(I[0])
    y = int(I[1])

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
while x != 0 and y != 0:
    print(y,x)
    x, y = map(int, input().split())

Submission status: Wrong Answer

Solution code:
data = list(map(int, input().split()))
while data[0] != 0 and data[1] != 0:
    output = sorted(data)
    print(*output)
    data = list(map(int, input().split()))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    a,b=list(map(int,input().split()))
    if a==0 and b==0:
        quit()
    print(b,a)

Submission status: Wrong Answer

Solution code:
while True:
    a=list(map(int,input().split()))
    if a==[0,0]:
        quit()
    print(*a[::-1])

Submission status: Wrong Answer

Solution code:
while True:
    a=input().split()
    if a==['0','0']:
        quit()
    print(*a[::-1])

Submission status: Wrong Answer

Solution code:

number_list = []
while True:
    try:
        number = input().split()
        int_number = [int(x) for x in number]
        number_list.append(int_number)
    except EOFError:
        break


for i in range(0, len(number_list)):
    number_list[i].sort()
    print("{} {}".format(number_list[i][0], number_list[i][1]))

Submission status: Wrong Answer

Solution code:

number_list = []
while True:
    try:
        number = input().split()
        int_number = [int(x) for x in number]
        number_list.append(int_number)
    except EOFError:
        break


for i in range(0, len(number_list)):
    number_list[i].reverse()
    print("{} {}".format(number_list[i][0], number_list[i][1]))

Submission status: Wrong Answer

Solution code:

number_list = []
# while True:
#     try:
#         number = input().split()
#         int_number = [int(x) for x in number]
#         number_list.append(int_number)
#     except EOFError:
#         break

count = 0
while count < 2004:
    number = input().split()
    int_number = [int(x) for x in number]
    number_list.append(int_number)
    count += 1

for i in range(0, len(number_list)):
    number_list[i].sort()
    print("{} {}".format(number_list[i][0], number_list[i][1]))

Submission status: Wrong Answer

Solution code:
result = []
while True:
    try:
        my_value = input()
        my_value_list = ([int(x) for x in my_value.split()])
        my_value_list.sort()
        result.append(my_value_list)
    except EOFError:
        break

for i in range(0, len(result)):
    print("{} {}".format(result[i][0], result[i][1]))

Submission status: Wrong Answer

Solution code:
result = []
while True:
    my_value = input()
    my_value_list = []
    my_value_list = ([int(x) for x in my_value.split()])
    my_value_list.sort()
    result.append(my_value_list)
    if my_value_list[0] == 0 and my_value_list[1] == 0:
        break

for i in range(0, len(result)):
    print("{} {}".format(result[i][0], result[i][1]))

Submission status: Wrong Answer

Solution code:
a,b = input().split()
print(b,a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while 1:
	a,b = input().split()
	if a == "0" and b == "0":
		break
	print(b + " " + a)

Submission status: Wrong Answer

Solution code:
while 1:
	a,b = sorted(input().split())
	if a == "0" and b == "0":
		break
	print(a + " " + b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# (c) midandfeed
q = []
while(True):
	a, b = [int(x) for x in input().split()]
	if ( (a==0) and (b==0) ):
		break
	q.append((b,a))
	
q.sort()

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

Submission status: Wrong Answer

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

while (x != 0 and y != 0):
    if x <= y :
        print(x, y)
    elif x > y :
        print(y, x)

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
import sys
for i in sys.stdin:
    a, b = sorted(map(int, i.split()))
    if a != 0 and b != 0:
        print(a, b)
    else:
        break

Submission status: Wrong Answer

Solution code:
import sys
for i in sys.stdin:
    print(i)
    a, b = sorted(map(int, i.split()))
    if a != 0 or b != 0:
        print(a, b)
    else:
        break

Submission status: Wrong Answer

Solution code:
a, b = input().split();
a = int(a)
b = int(b)
if a>b:
    print(b,a)
else:
    print(a,b)

Submission status: Wrong Answer

Solution code:
indat = input().split()
x = []
x.append(indat[0])
y = []
y.append(indat[1])

i = 1

while True:
    indat = input().split()
    x.append(indat[0])
    y.append(indat[1])
    if int(x[i]) == int(y[i]) == 0:
        break
    i += 1

for j in range(len(x)):
    if int(x[j]) != 0 and int(y[j]) != 0:
        print("{0} {1}".format(y[j],x[j]))

Submission status: Wrong Answer

Solution code:
indata = input().split()
x = []
x.append(indata[0])
y = []
y.append(indata[1])

i = 1

while True:
    indata = input().split()
    x.append(indata[0])
    y.append(indata[1])
    if int(x[i]) == int(y[i]) == 0:
        break
    i += 1

for j in range(len(x)):
    if int(x[j]) != 0 and int(y[j]) != 0:
        print(y[j],x[j])