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:
x = []
y = []

i = 0

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])

Submission status: Wrong Answer

Solution code:
x = []
y = []

i = 0

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:
        if int(x[j]) < int(x[j]):
            print(x[j],y[j])
        else:
            print(y[j],x[j])

Submission status: Wrong Answer

Solution code:
x = []
y = []

i = 0

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:
        if int(x[j]) < int(x[j]):
            print("{0} {1}".format(x[j],y[j]))
        else:
            print("{0} {1}".format(y[j],x[j]))

Submission status: Wrong Answer

Solution code:
import sys
while 1:
  x,y= sys.stdin.readline().split()
  if x == y == "0":
   break
  elif int(x)>int(y):
   print(x,y)
  else:
   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)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=[]
line=''

Submission status: Wrong Answer

Solution code:
n=[]
line=''
while line != [0,0]:
    line=list(map(int,input().split()))
    n.append(line)
for i in range(len(n)):
    print('%d %d'%(n[i][0] if n[i][0]>=n[i][1] else n[i][1],n[i][0] if n[i][0]<=n[i][1] else n[i][1]))

Submission status: Wrong Answer

Solution code:

n=[]
line=''
while line != [0,0]:
    line=list(map(int,input().split()))
    n.append(line)
for i in range(len(n)-1):
    print('%d %d'%(n[i][0] if n[i][0]>=n[i][1] else n[i][1],n[i][0] if n[i][0]<=n[i][1] else n[i][1]))

Submission status: Wrong Answer

Solution code:

def sort_num(x, y):
    n = [x, y]
    n.sort()
    print(n[0], n[1])

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

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

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

Submission status: Wrong Answer

Solution code:
l = []
while True:
    N, M = map(int, input().split())
    if (N == 0 and M == 0):
        break;
    if (N > M):
        l.append([M, N])
    elif (N < M):
        l.append([N, M])

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

Submission status: Wrong Answer

Solution code:
a=[]
while 1:
 n=input()
 if n=='0 0':break
 a.append(n)
for s in a:
 x=sorted(map(int,s.split()))
 print(*s)

Submission status: Wrong Answer

Solution code:
a=[]
import sys
for n in sys.stdin:
 if n=='0 0':break
 x=sorted(map(int,n.split()))
 print(*x)

Submission status: Wrong Answer

Solution code:
import sys
for n in sys.stdin:
 if n=='0 0':break
 x=sorted(map(int,n.split()))
 print(*x)

Submission status: Wrong Answer

Solution code:
import sys
for n in sys.stdin:
 if n=='0 0':break
 print(*sorted(map(int,n.split())))

Submission status: Wrong Answer

Solution code:
import sys
for a in sys.stdin:
 if a=='0 0':break
 print(*sorted(map(int,a.split())))

Submission status: Wrong Answer

Solution code:
a=[]
import sys
for s in sys.stdin:
 if s=='0 0':break
 a.append(s)
for t in a:
 x,y=map(int,t.split())
 print(f'{y} {x}') if x>y else print(t)

Submission status: Wrong Answer

Solution code:
a=[]
import sys
for s in sys.stdin:
 s=s.split()
 if s=='0 0':break
 a.append(s)
for t in a:
 print(*sorted(map(int,t)))

Submission status: Wrong Answer

Solution code:
x = map(int,input().split())
 
while x == 0:    
    a=int(x).sort()
    for i in range(2):
        print(str(a[0]),str(a[1]))
    x = input()

Submission status: Wrong Answer

Solution code:
while True:
    a,b = map(int,input().split())
    if a==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:
        break
    print(b,a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    l = input().split()
    b = int(l[0])
    c = int(l[1])
    if b == 0 and c == 0:
        break
    print(str(b) + " " + str(c))

Submission status: Wrong Answer

Solution code:
while True:
    a, b = [int(i) for i in input().split()]
    if not (a or b):
        break
    print(b,a)

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

Submission status: Wrong Answer

Solution code:
while True:
    a, b = sorted([int(i) for i in input().split()])
    if not(a or b):
        break
    print(b,a)

Submission status: Wrong Answer

Solution code:
import sys

l = []
for input in sys.stdin:
    l.append(input.split())

for i in range(0,len(l)):
    temp = l[i][0]
    l[i][0] = l[i][1]
    l[i][1] = temp

for i in range(0,len(l)):
    if(int(l[i][0]) != 0 and int(l[i][1]) != 0):
        print l[i][0],l[i][1]

Submission status: Wrong Answer

Solution code:
import sys

l = []
for input in sys.stdin:
    l.append(input.split())

for i in range(0,len(l)):
    temp = l[i][0]
    l[i][0] = l[i][1]
    l[i][1] = temp

for i in range(0,len(l)):
    if(int(l[i][0]) != 0 and int(l[i][1]) != 0):
        print int(l[i][0]),int(l[i][1])

Submission status: Wrong Answer

Solution code:
import sys

l = []
for input in sys.stdin:
    l.append(input.split())

for i in range(0,len(l)):
    temp = l[i][0]
    l[i][0] = l[i][1]
    l[i][1] = temp

for i in range(0,len(l)):
    if(int(l[i][0]) == 0 and int(l[i][1]) == 0):
        break
    print int(l[i][0]),int(l[i][1])

Submission status: Wrong Answer

Solution code:
import sys

l = []
for input in sys.stdin:
    l.append(input.split())

for i in range(0,len(l)):
    temp = l[i][0]
    l[i][0] = l[i][1]
    l[i][1] = temp

l = sorted(l)

for i in range(0,len(l)):
    if(int(l[i][0]) != 0 and int(l[i][1]) != 0):
        print int(l[i][0]),int(l[i][1])

Submission status: Wrong Answer

Solution code:
list = [int(x) for x in input().split( )]
print(' '.join(map(str,sorted(list))))

Submission status: Wrong Answer

Solution code:
while True:
    case = input().split()
    if case[1] == "0" and case[0] == "0":
        break
    print(case[1] +" " + case[0])

Submission status: Wrong Answer

Solution code:
while True:
    case = input().split()
    if case[1] == "0" and case[0] == "0":
        break
    print(case[1] +" "+ case[0])

Submission status: Wrong Answer

Solution code:
while True:
    case = input().split()
    if case[1] == "0" and case[0] == "0":
        break
    if case[1] < case[0]:
        print(case[1] +" "+ case[0])
    else:
        print(case[0] +" "+ case[1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
for num in range(3000):
    x, y = map(int, input().split())
    if(x == 0 & y == 0):
        break
    elif(x < y) :
        print("{0} {1}".format(x, y))
    else:
        print("{0} {1}".format(y, x))

Submission status: Wrong Answer

Solution code:
def ex(x, y):
    if x < y:
        tmp = x
        x = y
        y = tmp
    return x,y

def ex2num():
    tmp = input().split(" ")
    r1, r2 = ex(tmp[0], tmp[1])
    print (r1, r2)
    return 0

if __name__ == "__main__":
    ret = ex2num()

Submission status: Wrong Answer

Solution code:
def ex(x, y):
    if x < y:
        tmp = x
        x = y
        y = tmp
    return x,y

def ex2num():
    tmp = input().split(" ")
    print (tmp[0], tmp[1])
    while ('0' != tmp[0]) and ('0' != tmp[1]):
        r1, r2 = ex(tmp[0], tmp[1])
        print (r1, r2)
        tmp = input().split(" ")

    return 0

if __name__ == "__main__":
    ret = ex2num()

Submission status: Wrong Answer

Solution code:
def ex(x, y):
    if x < y:
        tmp = x
        x = y
        y = tmp
    return x,y

def ex2num():
    tmp = input().split(" ")
    while ('0' != tmp[0]) and ('0' != tmp[1]):
        r1, r2 = ex(tmp[0], tmp[1])
        print (r1, r2)
        tmp = input().split(" ")

    return 0

if __name__ == "__main__":
    ret = ex2num()

Submission status: Wrong Answer

Solution code:
def ex(x, y):
    if x < y:
        tmp = x
        x = y
        y = tmp
    return x,y

def ex2num():
    tmp = input().split(" ")
    while ('0' != tmp[0]) or ('0' != tmp[1]):
        r1, r2 = ex(tmp[0], tmp[1])
        print (r1, r2)
        tmp = input().split(" ")

    return 0

if __name__ == "__main__":
    ret = ex2num()

Submission status: Wrong Answer

Solution code:
def ex(x, y):
    if x < y:
        tmp = x
        x = y
        y = tmp
    return x, y

def ex2num():
    tmp = input().split(" ")
    while ('0' != tmp[0]) or ('0' != tmp[1]):
        r1, r2 = ex(tmp[0], tmp[1])
        print(r1, r2)
        tmp = input().split(" ")

    return 0

if __name__ == "__main__":
    ret = ex2num()

Submission status: Wrong Answer

Solution code:
def ex(x, y):
    if x < y:
        tmp = x
        x = y
        y = tmp
    return x, y

def ex2num():
    r1, r2 = input().split(" ")
    r1 = int(r1)
    r2 = int(r2)
    while (0 != r1) or (0 != r2):
        r1, r2 = ex(r1, r2)
        print(r1, r2)
        r1, r2 = input().split(" ")
        r1 = int(r1)
        r2 = int(r2)

    return 0

if __name__ == "__main__":
    ret = ex2num()

Submission status: Wrong Answer

Solution code:
def ex2num():
    while (True):
        r1, r2 = input().split(" ")
        r1 = int(r1)
        r2 = int(r2)
        if (0 == r1) or (0 == r2):
            break
        if r1 < r2:
            print(r1, r2)
        else:
            print(r2, r1)

    return 0

if __name__ == "__main__":
    ret = ex2num()

Submission status: Wrong Answer

Solution code:
def execute(x, y):
    return [y, x]

if __name__ == '__main__':
    i = 0
    while True:
        x = execute(*map(int, input().split(' ')))
        i += 1
        if (x[0] == 0 and x[1] == 0): break
        print('{} {}'.format(*x))

Submission status: Wrong Answer

Solution code:
def execute(x, y):
    return [y, x]

if __name__ == '__main__':
    while True:
        x = execute(*map(int, input().split(' ')))
        if (x[0] == 0 and x[1] == 0): break
        print('{} {}'.format(*x))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while(True):
    i,j=input().split()
    
    if i != '0' and j != '0':
        if int(i) <= int(j):
            print('{} {}'.format(i,j))
        else:
            print('{} {}'.format(j,i))
    else:
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
while a != 0 or b != 0:
    print(b, a)
    a, b = map(int, input().split())

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

while a != "0" and b != "0":
	print(b + " " + a)
	a, b = input().split()

Submission status: Wrong Answer

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

while not a == "0" and b == "0":
	print(b + " " + a)
	a, b = input().split()

Submission status: Wrong Answer

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

while not(a == "0" and b == "0"):
	print(b + " " + a)
	a, b = input().split()

Submission status: Wrong Answer

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

while not(a == "0" and b == "0"):
	if a <= b:
		print(a + " " + b)
	else:
		print(b + " " + a)
	a, b = input().split()

Submission status: Wrong Answer

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

  if x<y:
    print(x,y)

  elif y<x:
    print(y,x)

  elif x==y==0:
    break

Submission status: Wrong Answer

Solution code:

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

if x<y:
  print(x,y)

elif y<x:
  print(y,x)

Submission status: Wrong Answer

Solution code:

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

if x<y:
  print(x,y)

elif y<x:
  print(y,x)

elif x and y !=0:
  print(x,y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = 100
while a != 0:
    lis = [int(x) for x in input().split()]
    if lis[0]*lis[1] != 0:
        lis.sort()
        print(lis[0],end = " ")
        print(lis[1])
    a = lis[0]*lis[1]

Submission status: Wrong Answer

Solution code:
a, b= map(int, input(). split())
while a!=0 and b!=0:
    list1=[a, b]
    list1.sort()
    print(str(list1[0]) + " " + str(list1[1]))
    a, b= 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:
cnt = 1
c = list(map(int,input().split()))
while c[0] != 0 and c[1] != 0:
 c.sort()
 print("Case {0}: {1} {2}".format(cnt,c[0],c[1]))
 c = list(map(int,input().split()))
 cnt += 1

Submission status: Wrong Answer

Solution code:
c = list(map(int,input().split()))
while c[0] != 0 and c[1] != 0:
 c.sort()
 print(c[0],c[1])
 c = list(map(int,input().split()))

Submission status: Wrong Answer

Solution code:

c = list(map(int,input().split()))

while c[0] != 0 and c[1] != 0:
 c.sort()
 print(c[0],c[1])
 c = list(map(int,input().split()))

Submission status: Wrong Answer

Solution code:
c = list(map(int,input().split()))

while c[0] != 0 and c[1] != 0:
 c.sort()
 print(c[0],c[1])
 c = list(map(int,input().split()))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while (3000):
    a,b=map(int, input().split())
    if a==0 and b==0:
        break
    elif 0<=a and a <= 10000 and 0<=b and b <=10000:
        print(str(b)+" "+str(a))
    else:
        break

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=[]
b=[]
while True:
    n,m= map(int,input().split())
    if n == 0 and m==0:
        break
    a.append(n)
    b.append(m)
for i in range (len(a)):
    print(b[i],a[i])

Submission status: Wrong Answer

Solution code:
# coding:utf-8
n = list(map(int, input().split()))
print(n)
if n[0] > n[1]:
    i = n[0]
    n[0] = n[1]
    n[1] = i
    print (str(n[0]) + " " + str(n[1]))
else:
    print (str(n[0]) + " " + str(n[1]))

Submission status: Wrong Answer

Solution code:
# coding: utf-8

n = []
i = 0
while i < 3:
    n = [int(i) for i in input().split()]
    if n[0] == 0 and n[1] == 0:
        break
    m = 0
    if n[0] > n[1]:
        m = n[0]
        n[0] = n[1]
        n[1] = m
    print(str(n[0]) + " " + str(n[1]))
    i += 1

Submission status: Wrong Answer

Solution code:
import sys

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

for i in range(0,len(l)):
    l[i] = l[i].split()

for i in range(0,len(l)):
    if l[i][0] == '0' and l[i][1] == '0':
        continue
    x = l[i][0]
    y = l[i][1]
    if y < x:
        temp = x
        x = y
        y = temp
    print(x,y)

Submission status: Wrong Answer

Solution code:
a=input().split()
b=int(a[0])
c=int(a[1])
a.sort()
if c==0:
  print(b[0],c[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(*sorted(input().split()))

Submission status: Wrong Answer

Solution code:
while 1:
  x,y = map(int,input().split())
  if not x*y: break
  print(*sorted(x,y))

Submission status: Wrong Answer

Solution code:
while 1:
  x,y = map(int,input().split())
  if not x*y: break
  print(sorted(x,y))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while 1:
  x,y = sorted(map(int,input().split()))
  if not x*y: break
  print(x,y)

Submission status: Wrong Answer

Solution code:

Submission status: Wrong Answer

Solution code:
while 1:
  x,y = sorted(map(int,input().split()))
  if not (x*y): break
  print(x,y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    list = input().split()
    if list[0] == '0' and list[1] == '0':
        break
    if list[1] < list[0]:
        print(str(list[1]) + ' ' + str(list[0]))
    else:
        print(str(list[0]) + ' ' + str(list[1]))

Submission status: Wrong Answer

Solution code:
while True:

    x,y = map(int, input().split())
    list = [x, y]

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

    print(sorted(list, reverse=True))

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(str(x) + " " + str(y))
 #   else:
 #       print(str(y) + " " + str(x))

    list = [x, y]

    print(sorted(list))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while True:
    n, m = map(int, input().split())
    if n == 0 and m == 0:
        exit()
    else:
        print("{0} {1}".format(m, n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
while a and b != 0:
    if a > b:
        x = a
        a = b
        b = x
    print(str(a) + " " + str(b))
    a,b = map(int, input().split())

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

a = []

while True:
   n = map(int,raw_input().split())
   if n == [0,0]:
      break
   if n[0]>n[1]:
      n[0],n[1] = n[1],n[0]
   a.append(n)

for i in range(len(a)):
   print('%i %i' % (a[i-1][0],a[i-1][1]))

Submission status: Wrong Answer

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

a = []

while True:
   n = map(int,raw_input().split())
   if n == [0,0]:
      break
   if n[0]>n[1]:
      n[0],n[1] = n[1],n[0]
   a.append(n)

for i in range(len(a)):
   print('%i %i' % (a[i-1][0],a[i-1][1]))

Submission status: Wrong Answer

Solution code:
for i in range(3000):
    k=input().split()
    a=int(k[0])
    b=int(k[0])
    if a==0 and b==0:
        break
    else:
        if a<b:
            print(str(a)+" "+str(b))
        else:
            print(str(b)+" "+str(a))

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:
# Swapping Two Numbers

zeroCount = 0
while zeroCount == 0:
    numbers = [int(i) for i in input().rstrip().split()]
    # print(numbers)
    if numbers[0] == 0 and numbers[1] == 0:
        zeroCount += 1
    else:
        swap = sorted(numbers)
        # print(swap)
        output = [str(number) for number in swap]
        print(output)

Submission status: Wrong Answer

Solution code:
# Swapping Two Numbers

zeroCount = 0
while zeroCount == 0:
    numbers = [int(i) for i in input().rstrip().split()]
    # print(numbers)
    if numbers[0] == 0 and numbers[1] == 0:
        zeroCount += 1
    else:
        swap = sorted(numbers)
        # print(swap)
        a = [str(n) for n in swap]
        print(a)

Submission status: Wrong Answer

Solution code:
while True:
    x = input()
    x1, x2 = x.split(' ')
    if x1 == x2 == '0':
        break
    print(x2, x1)

Submission status: Wrong Answer

Solution code:
number = input()

number_list = number.split(' ')

x = int(number_list[0])
y = int(number_list[1])

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

Submission status: Wrong Answer

Solution code:
number = input()

number_list = number.split(' ')

x = int(number_list[0])
y = int(number_list[1])

if 1 <= x and y <= 10000:
    if x < y:
        print(str(x) + " " + str(y))
    else:
        print(str(y) + " " +  str(x))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
while 1:
    n = input().split()
    n.sort()
    if int( n[0] ) == int( n[1] ) == 0:
        break
    print( str( n[0] ), str( n[1] ) )

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
r = 0
while r == 0:
        n = map(int,raw_input().split())
        if n[0] == n[1] == 0:
                break
        if n[0] < n[1]:
                print n[0] ,
                print n[1] 
        if n[1] < n[0]:
                print n[1] ,
                print n[0]

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

Submission status: Wrong Answer

Solution code:
while True:
    a = map(int, raw_input().split())
    if a != [0,0]:
        print ' '.join(sorted(map(str,a)))
    else: break

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    output = []
    while True:
        x, y = map(int, raw_input().split(' '))
        if x == 0 and y == 0:
            break
        else:
            if x > y:
                output.append('%d %d' % (x, y))
            else:
                output.append('%d %d' % (y, x))

    for line in output:
        print line

Submission status: Wrong Answer

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

Submission status: Time Limit Exceeded

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

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

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

Submission status: Time Limit Exceeded

Solution code:
S = raw_input().split(" ")
S[0] = int(S[0])
S[1] = int(S[1])

while S[0] != 0 or S[1] != 0:
  if(S[0] < S[1]):
    print(str(S[0]) + " " + str(S[1]))
  else:
    print(str(S[1]) + " " + str(S[0]))

Submission status: Time Limit Exceeded

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

while True:

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

    list = [x, y]
    print(list.sort())

Submission status: Time Limit Exceeded

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

while True:

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

    list = [x, y]
    print(sorted(list, reverse=True))

Submission status: Time Limit Exceeded

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

while True:

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

    print(sorted(list, reverse=True))

Submission status: Time Limit Exceeded

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

while True:

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

    print(sorted(list, reverse=True))

Submission status: Time Limit Exceeded

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

while True:

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

    list = [x, y]

    print(sorted(list, reverse=True))

Submission status: Time Limit Exceeded

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

while True:

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

    elif x <= y:
        print(x,y)

    else:
        print(y, x)

Submission status: Time Limit Exceeded

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

Submission status: Memory Limit Exceeded

Solution code:
a = []
while True:
	b = list(map(int,"3 -1".split()))
	if b[0] == "0" and b[1]=="0":
		break
	b.sort()
	a.append(b)


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

Submission status: Memory Limit Exceeded

Solution code:
for i in range(100000000):
  l = map(int, raw_input().split())
  if l[0] == 0 and l[1] == 0:
    break
  l.sort()
  print l[0], l[1]

Submission status: Accepted

Solution code:
import sys


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# coding: utf-8
while True:
    x, y = map(int, input().split())
    
    if x == 0 and y == 0:
        exit()
    elif x < y:
        print(x, y)
    else:
        print(y, x)

Submission status: Accepted

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

Submission status: Accepted

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
        
    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: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
while 1:
    a = list(map(int, input().split()))
    if a[0] or a[1]:
        print(min(a), max(a))
    else:
        break

Submission status: Accepted

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

Submission status: Accepted

Solution code:
b = []
c = []
while True:
    inp = input()
    a = inp.split()
    a[0] = int(a[0])
    a[1] = int(a[1])
    if a[0] == 0 and a[1] == 0:
        break
    else:
        a.sort()
        b.append(a[0])
        c.append(a[1])
for i in range(len(b)):
    print(b[i],c[i])