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:
import sys


def main():
    while True:
        x, y = [int(i) for i in sys.stdin.readline().split(' ')]
        if x == 0 & y == 0:
            break
        elif x > y:
            print('{0} {1}'.format(x, y))
        else:
            print('{0} {1}'.format(y, x))
    return


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys


def main():
    while True:
        x, y = [int(i) for i in sys.stdin.readline().split(' ')]
        if x == 0 & y == 0:
            break
        elif x > y:
            print('{0} {1}'.format(y, x))
        else:
            print('{0} {1}'.format(x, y))
    return


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys


def main():
    while True:
        x, y = [int(i) for i in sys.stdin.readline().split(' ')]
        if x == 0 & y == 0:
            break
        elif x >= y:
            print('{0} {1}'.format(y, x))
        else:
            print('{0} {1}'.format(x, y))
    return


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys


def main():
    while True:
        x, y = [int(i) for i in sys.stdin.readline().split(' ')]
        if x == 0 & y == 0:
            break
        elif x <= y:
            print(x, y)
        else:
            print(y, x)
    return


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys


def main():
    while True:
        x, y = [int(i) for i in sys.stdin.readline().split(' ')]
        if x == 0 & y == 0:
            break
        elif x >= y:
            print(x, y)
        else:
            print(y, x)
    return


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import sys


def main():
    while True:
        x, y = [int(i) for i in sys.stdin.readline().split(' ')]
        if x == 0 & y == 0:
            break
        if x <= y:
            print(x, y)
        else:
            print(y, x)
    return


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
    print(y,x)

Submission status: Wrong Answer

Solution code:
v = 0
i = 0
a = []
b = []
while v == 0:
    x = input().split()
    if 0 == int(x[0]):
        if 0 == int(x[1]):
            v = 1
    else:
        a.append(int(x[0]))
        b.append(int(x[1]))
        i = int(i) + 1
for j in range(int(i)):
    if a[j] < b[j]:
        pass
    else:
        c = a[j]
        a[j] = b[j]
        b[j] = c

for j in range(int(i)):
    print('%d %d' % (int(a[j]),int(b[j])))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

while x!=0 and y!=0:
    if x>y:
        x,y = y,x
    print('{0} {1}'.format(x,y))
    x,y = map(int,input().split())

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
# ITP1_3_C


for _ in range(100):
    N=input().split()
    if N[0] == "0" and N[1] == "0":
        break
    print(N[1],N[0])

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
# ITP1_3_C


while(True):
    N=input().split()
    if N[0] == "0" and N[1] == "0":
        break
    print(N[1],N[0])

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!
# ITP1_3_C


while(True):
    N=input().split()
    if N[0] == "0" and N[1] == "0":
        break
    N.sort()
    print(' '.join(N))

Submission status: Wrong Answer

Solution code:
for i in range(0, 3000):
    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 == y == 0: break

    print(y, x)

Submission status: Wrong Answer

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

    print(y, x, sep = " ")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    x=input().split()
    y=[int(x[0]),int(x[1])]
    if y[0]==0 and y[1]==0:
        break
    elif y[0]<y[1]:
        print("{} {}".format(y[0],y[1]))
    elif y[0]>y[1]:
        print("{} {}".format(y[1],y[0]))

Submission status: Wrong Answer

Solution code:
v=raw_input().split(" ")
l=[]
while v[0]!='0' and v[1]!='0':
	n=list(map(int,v))
	n.sort()
	l.append(n)
	v=raw_input().split(" ")
for i in l:
	print str(i[0])+" "+str(i[1])

Submission status: Wrong Answer

Solution code:
v=raw_input().split(" ")
l=[]
while v[0]!='0' and v[1]!='0':
	n=list(map(int,v))
	n.rotate(1)
	l.append(n)
	v=raw_input().split(" ")
for i in l:
	print str(i[0])+" "+str(i[1])

Submission status: Wrong Answer

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

if a < b:
    print(f"{a} {b}")
else:
    print(f"{b} {a}")

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
for i in range(0, 10001):
    if x > y:
        temp = int(x)
        x = y
        y = temp
    print(f'{x} {y}')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x, y = map(int, input().split())
for i in range(0, 10001):
    if x == 0 and y == 0:
        break
    if x > y:
        temp = int(x)
        x = y
        y = temp
    print(f'{x} {y}')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
nyuryoku = []

try:
    while True:
        s = input().split(" ")
        if s == '':
            break
        if s[0] < s[1]:
            print(str(s[0]) + " " + str(s[1]))
        else:
            print(str(s[1]) + " " + str(s[0]))
except EOFError:
    pass

Submission status: Wrong Answer

Solution code:
nyuryoku = []

try:
    while True:
        s = input().split(" ")
        if s == '' :
            break
        if s[0] < s[1]:
            print(str(s[0]) + " " + str(s[1]))
        else:
            print(str(s[1]) + " " + str(s[0]))
except EOFError:
    pass

Submission status: Wrong Answer

Solution code:
nyuryoku = []

try:
    while True:
        s = input().split(" ")
        if s == ' ' :
            break
        if s[0] < s[1]:
            print(str(s[0]) + " " + str(s[1]))
        else:
            print(str(s[1]) + " " + str(s[0]))
except EOFError:
    pass

Submission status: Wrong Answer

Solution code:
nyuryoku = []

try:
    while True:
        s = input().split(" ")
        if s == '':
            break
        if s[0] != 0 and s[1] != 0:
            if s[0] < s[1]:
                print(str(s[0]) + " " + str(s[1]))
            else:
                print(str(s[1]) + " " + str(s[0]))
except EOFError:
    pass

Submission status: Wrong Answer

Solution code:
nyuryoku = []

try:
    while True:
        s = input().split(" ")
        if s == '':
            break
        if int(s[0]) + int(s[1]) != 0:
            if s[0] < s[1]:
                print(str(s[0]) + " " + str(s[1]))
            else:
                print(str(s[1]) + " " + str(s[0]))
except EOFError:
    pass

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
array = list(map(int, input().split()))
array.sort()
array2 = []
while array[0] != 0 and array[1] != 0:
    array2.append(array)
    array = input()
    array = list(map(int, inpu().split()))
    array.sort()
for i in array2:
    print(i[0], i[1])

Submission status: Wrong Answer

Solution code:
array = list(map(int, input().split()))
array.sort()
array2 = []
while array[0] != 0 and array[1] != 0:
    array2.append(array)
    array = list(map(int, input().split()))
    array.sort()
for i in array2:
    print(i[0], i[1])

Submission status: Wrong Answer

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

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 = [int(i) for i in input().split()]
    if a<b:
        print(str(a) + " " + str(b))
    else:
        print(str(b) + " " + str(a))
    if a == 0 and b==0:
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
  
l = sys.stdin.readlines()

for i in l[:-1]:
    a,b = map(int,i.split())
    print(b,a)

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
i=1
while True:
    x,y= map(int,input().split())
    if x==y==0 or i==3000:
        break
    else:
        print('{0} {1}'.format(x,y))
        i +=1

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
numListA = []
numListB = []

x = -1
y = -1
num = 0

while x != 0 or y != 0:  
    if x == -1:
        x, y = (int(a) for a in input().split())

    else:
        numListA = numListA + [x]
        numListB = numListB + [y]
        x, y = (int(a) for a in input().split())
        num += 1

for i in range(num):
    print("%d %d" % (numListB[i], numListA[i]))

Submission status: Wrong Answer

Solution code:
cnt = 1
output = []
while True:
	data = input().split()
	if data[0] == '0' and data[1] == '0':
		break
	output += [data[1] + " " + data[0]]

for line in output:
	print(line)

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:
    t = list(map(int, input().split()))
    if t[0] == 0 and t[0] == 0:
        break
    t = sorted(t)
    print('{} {}'.format(t[0], t[1]))

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
    x,y = map(int, input().split())
    if x == 0 and y == 0: break
if x > y:
    print(y, x)
else:
    print(x, y)

Submission status: Wrong Answer

Solution code:
while 1:
  n,m=map(int,input().split())
  if n==0 and m==0:
    break
  print(m,n)

Submission status: Wrong Answer

Solution code:
for i in range(10000):
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        break
    else:
        if a > b:
            print(a, b)
        else:
            print(b, a)
        #print(min(a,b), max(a,b))

Submission status: Wrong Answer

Solution code:
while True:
    c = input().split()
    x, y = int(c[0]), int(c[1])
    if x == y == 0:
        break
    print("%d %d" % (y, x))

Submission status: Wrong Answer

Solution code:
while True:
    c = input().split()
    x, y = c[0], c[1]
    if x == y == "0":
        break
    print("%s %s" % (y, x))

Submission status: Wrong Answer

Solution code:
while True:
    c = input().split()
    x, y = int(c[0]), int(c[1])
    if x == y == 0:
        break
    if y < x:
        x, y = y, x
    print("%s %s" % (y, x))

Submission status: Wrong Answer

Solution code:
while True:
    c = input().split()
    x, y = int(c[0]), int(c[1])
    if x == y == 0:
        break
    if y < x:
        x, y = y, x
    print("%d %d" % (y, x))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
for _ in range(3000):
	x,y = map(int,input().split(" "))

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

Submission status: Wrong Answer

Solution code:
datalist = []
Flag = True
for i in range(3000):
    if Flag:
        x, y = map(int, input().split())
        if x == 0:
            Flag = False
        else:
            datalist.append((x, y))
#print(datalist)
for (i,j) in datalist:
    if i < j :
        print("{} {}".format(i, j))
    else:
        print("{} {}".format(j, i))

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(x, y)

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(x, y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

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

Submission status: Wrong Answer

Solution code:
from sys import stdin

while True:
    x, y = (int(n) for n in stdin.readline().rstrip().split())

    if x == y == 0:
        break

    print(y, x)

Submission status: Wrong Answer

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

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

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:
while True:
    a = list(map(int,input().split()))
    if a[0] == 0 and a[1] == 0:
        break
    elif a[0] > a[1]:
        a.sort()
        print(*a)
    elif a[0] < a[1]:
        print(*a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
	a = [x for x in map(int, raw_input().split(" ")) if x <> 0]
	if len(a) <= 0:
		break
	else:
		a.sort()
		print " ".join(map(str, a))

Submission status: Wrong Answer

Solution code:
while 1:
    a,b = map(int,raw_input().split())
    if (not a) & (not b):
       break
    print ('{} {}'.format(a,b))

Submission status: Wrong Answer

Solution code:
listx = []
listy = []
while True:
    x,y = map(int,raw_input().split())
    if x==0 and y==0:
        break
    listx.append(x)
    listy.append(y)

listx.sort()
listy.sort()

for i in range(len(listx)):
    print '%s %s'% (listx[i],listy[i])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while 1:
 x,y=raw_input().split()
 if x==y=='0':break
 print y+" "+x

Submission status: Wrong Answer

Solution code:
while 1:
 x,y=sorted(raw_input().split())
 if x==y=='0':break
 print x+" "+y

Submission status: Wrong Answer

Solution code:
import sys

def main():
    for line in iter(sys.stdin.readline, ""):
        a = line.split(" ")
        if (a[0] == 0 and a[1] == 0):
            break;

        print(min(a) + " " + max(a))
     
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import sys

def main():
    for line in iter(sys.stdin.readline, ""):
        a = line.rstrip("\n").split(" ")
        if (a[0] == 0 and a[1] == 0):
            break;

        print(min(a) + " " + max(a))
     
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

while not x == 0 and y ==0:
 print('{0} {1}'.format(x,y))

Submission status: Wrong Answer

Solution code:

while True:
    x,y = raw_input().split()
    x,y = map(int,(x,y))
    if x == 0 and y == 0:
        break
    if x > y:
        x,y = map(str,(x,y))
        print x + " " + y
    else:
        x,y = map(str,(x,y))
        print y + " " + x

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

while True:
    x,y = raw_input().split()
    x,y = map(int,(x,y))
    if x == 0 and y == 0:
        break
    if x > y:
        x,y = map(str,(x,y))
        print x + " " + y
    else:
        x,y = map(str,(x,y))
        print x + " " + y

Submission status: Wrong Answer

Solution code:
c = 0
while True:
    a = input().split(' ')
    x = int(a[0])
    y = int(a[1])

    if (x and y) == 0:
        break;
    elif x < y:
        print(x,y)
    elif x > y:
        print(y,x)
    elif x == y:
        print(x,y)
    c += 1

Submission status: Wrong Answer

Solution code:
stack = []
while True:
    a = raw_input()
    if a == '0 0': break
    for i, b in enumerate(a.split()):
        if i==0:
        	x=int(b)
    	else:
        	y=int(b)
		if x<=y:
			stack.append(x)
			stack.append(y)
		else:
			stack.append(y)
			stack.append(x)
for i, c in enumerate(stack):
	w=i%2
	if w==0:
        	x=int(c)
    	else:
        	y=int(c)
	print x,y

Submission status: Wrong Answer

Solution code:
stack = []
while True:
    a = raw_input()
    if a == '0 0': break
    for i, b in enumerate(a.split()):
        if i==0:
        	x=int(b)
    	else:
        	y=int(b)
		if x<=y:
			stack.append(x)
			stack.append(y)
		else:
			stack.append(y)
			stack.append(x)
print stack
for i, c in enumerate(stack):
	w=i%2
	if w==0:
		x=int(c)
	else:
		y=int(c)
		print x,y

Submission status: Wrong Answer

Solution code:
x=1
y=1
while x!=0 and y!=0 :
	x,y=map(int, input().split(" "))
	if y<x :
		k=x
		x=y
		y=k
	print(x,"",+y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#coding:UTF-8

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

Submission status: Wrong Answer

Solution code:
# coding=utf-8

while True:
    x, y = map(int, raw_input().rstrip().split())
    if x * y:
        print '{} {}'.format(*sorted([x, y]))
    else:
        break

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    i = 0
    while True:
        v = map( int, raw_input().split())
        if v[0] == 0:
            break
        i += 1
        if v[0] > v[1]:
            print "{0} {1}".format(v[1],v[0])
        else:
            print "{0} {1}".format(v[0],v[1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while 1:
	(x,y) = map(int,raw_input().split())
	if x*y == 0:
		break
	else:
		if x > y:
			x,y = y,x
		print '%d %d' %(x,y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

    if x == 0 & y == 0 :
        break
    elif x > y:
        print(y, x)
    else:
        print(x, y)

Submission status: Wrong Answer

Solution code:
l = []
while True:
    values = map(int, raw_input().split())
    if values[0] == 0 and values[1] == 0:
        break
    else:
        l.append(values)

for v in l:
    print('%d %d') % (v[0], v[1])

Submission status: Wrong Answer

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

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

for v in l:
    print('%d %d') % (v[0], v[1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

x = raw_input().split(' ')

if x[0] != '0' and x[1] != '0':
	temp = x[1]
	x[1] = x[0]
	x[0] = temp

print `int(x[0])` + " " + `int(x[1])`

Submission status: Wrong Answer

Solution code:

lines = raw_input().split('\n')

for line in lines:	
	x = line.split(' ')
	
	if x[0] != '0' and x[1] != '0':
		temp = x[1]
		x[1] = x[0]
		x[0] = temp

	print `int(x[0])` + " " + `int(x[1])`

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
data1 = []
data2 =[]
while 1:
    x,y=map(int,raw_input().split())
    data1.append(x)
    data2.append(y)
    if x==0 and y==0:
        break
i=0
while 1:
    if data1[i]>data2[i]:
        print data2[i],data1[i]
    elif data1[i]<data2[i]:
        print data1[i],data2[i]
    if data1[i]==0 and data2[i]==0:
        break
    i+=1

Submission status: Wrong Answer

Solution code:
l = []
while True:
  s = [str(i) for i in input().split()]
  if s == ['0','0']:
    break
  else:
    l.append(s[0]+' '+s[1])
for i in l:
  print(i)

Submission status: Wrong Answer

Solution code:
x,y = input().split()
if x > y:
  print(y,x)
print(x,y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    items = input().split(' ')
    if (items.count('0') == 2):
        break
    items_sorted = sorted(items)
    print(' '.join(items_sorted))

Submission status: Wrong Answer

Solution code:
while True:
    nums = input().split(' ')
    if (nums.count('0') == 2):
        break
    nums_sorted = sorted(nums)
    print(' '.join(nums_sorted))

Submission status: Wrong Answer

Solution code:
while 1:
    x,y=map(int,raw_input().split())

    if x>y:
        print y,x
    elif x<y:
        print x,y
    if x==0 and y==0:
        break

Submission status: Wrong Answer

Solution code:
while 1:
    x,y=map(int,raw_input().split())

    if x>y:
        print y,x
    elif x<y:
        print x,y
    if x==0 and y==0:
        break
if x==0 and y==0:
    print "0 0"

Submission status: Wrong Answer

Solution code:
while 1:
    x,y=map(int,raw_input().split())

    if x>y:
        print y,x
    elif x<y:
        print x,y
    if x==0 and y==0:
        print "0 0"
        break

Submission status: Wrong Answer

Solution code:
while 1:
    x,y=map(int,raw_input().split())

    if x>y:
        print y,x
    elif x<y:
        print x,y
    else :
        print x,y
    if x==0 and y==0:
        break

Submission status: Wrong Answer

Solution code:
while 1:
    x,y=map(int,raw_input().split())

    if x>y:
        print y,x
    elif x<y:
        print x,y
    if x==0 and y==0:
        print 0,0
        break

Submission status: Wrong Answer

Solution code:
import sys

in_strs = sys.stdin

for in_str in in_strs:
    comp_list = in_str.split(" ")
    a = int(comp_list[0])
    b = int(comp_list[1])
    if a == 0 & b == 0:
        break
    elif a < b:
        print("{0} {1}".format(a, b))
    else:
        print("{0} {1}".format(b, a))

Submission status: Wrong Answer

Solution code:
import sys

in_strs = sys.stdin

for in_str in in_strs:
    comp_list = in_str.split(" ")
    a = int(comp_list[0])
    b = int(comp_list[1])
    if a == 0 & b == 0:
        break
    elif a < b:
        print("{0} {1}".format(a, b), end="")
    else:
        print("{0} {1}".format(b, a), end="")

Submission status: Wrong Answer

Solution code:
import sys

in_strs = sys.stdin

for in_str in in_strs:
    comp_list = in_str.split(" ")
    a = int(comp_list[0])
    b = int(comp_list[1])
    if a == 0 & b == 0:
        break
    elif a < b:
        print(a, b)
    else:
        print(b, a)

Submission status: Wrong Answer

Solution code:
import sys

in_strs = sys.stdin

for in_str in in_strs:
    comp_list = in_str.split(" ")
    a = int(comp_list[0])
    b = int(comp_list[1])
    if a == 0 & b == 0:
        break
    elif a < b:
        print(str(a), str(b))
    else:
        print(str(b), str(a))

Submission status: Wrong Answer

Solution code:
import sys

for i,ws in enumerate(sys.stdin,1):
    a,b = map(int, ws[:-1].split())

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

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

Submission status: Wrong Answer

Solution code:
import sys

for in_str in sys.stdin.readlines():
    comp_list = list(map(int, in_str.split(" ")))
    a = comp_list[0]
    b = comp_list[1]
    if a == 0 & b == 0 : break
    elif a < b :
        print(a, b)
    else :
        print(b, a)

Submission status: Wrong Answer

Solution code:
import sys

for in_str in sys.stdin:
#    comp_list = list(map(int, in_str.split(" ")))
    a, b = map(int, in_str.split())
    #a = comp_list[0]
    #b = comp_list[1]
    if a == 0 & b == 0 : break
    elif a < b :
        print(a, b)
    else :
        print(b, a)

Submission status: Wrong Answer

Solution code:
import sys

for in_str in sys.stdin:
    comp_list = list(map(int, in_str.split(" ")))
#    a, b = map(int, in_str.split())
    a = comp_list[0]
    b = comp_list[1]
    if a == 0 & b == 0 : break
    elif a < b :
        print(a, b)
    else :
        print(b, a)