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: Runtime Error

Solution code:
d = 0

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
while 1:
  x = map(int, raw_input().split())
  if x == 0:
    break
  x.sort()
  print x[0] + ' ' + x[1]

Submission status: Runtime Error

Solution code:
while 1:
  x = map(int, raw_input().split())
  if x == 0:
    break
  x.sort()
  print "%d %d" % (x[0], x[1])

Submission status: Runtime Error

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

if __name__ == "__main__":
	number()

Submission status: Runtime Error

Solution code:
def main():
    while True:
        xy = [int(v) for v in raw_input().split()]
        if sum(xy) == 0:
            break
        print " ".join([str(v) for v in sorted(xy)])

if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
count =1

while True:
    a,b =int(input())

    if a !=0 and b != 0 and a < b:
        a,b = a,b

    if a !=0 and b != 0 and b < a:
        a, b =b,a

    else:
         break

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = [int(i) for i in input(),split()]


d = a // b
r = a % b
f = a / b


print("{0} {1} {2:.5f}".format(d, r, f))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

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


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

Submission status: Runtime Error

Solution code:
a = []
while True:
	b = list(map(int,input().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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

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

Submission status: Runtime Error

Solution code:
data = input().split()
a = int(data[0])
b = int(data[1])
while(a != 0 and b != 0):
	print(str(b) + " " + str(a))
	data = input().split()
	a = int(data[0])
	b = int(data[1])

Submission status: Runtime Error

Solution code:
data = input().split()
a = int(data[0])
b = int(data[1])
while(a != 0 and b != 0):
	if a > b:
		temp = a
		a = b
		b = temp
	print(str(b) + " " + str(a))
	data = input().split()
	a = int(data[0])
	b = int(data[1])

Submission status: Runtime Error

Solution code:
x  =int(input())
y = int(input())

if x > y:
    print(x, y)
else:
    print(y, x)

Submission status: Runtime Error

Solution code:
import sys

#f = open('sample.txt', 'r')

list_line = sys.stdin.readlines()

for index, element in enumerate(list_line):
    list_line[index] = element.rstrip('\n')

for element in list_line:
    if int(element[0]) == 0 and int(element[2]) == 0:
        sys.exit()
    if(int(element[0]) > int(element[2])):
        print(element[2] + " " + element[0])
    else:
        print(element)

Submission status: Runtime Error

Solution code:
import sys


list_line = sys.stdin.readlines()

for index, element in enumerate(list_line):
    list_line[index] = element.rstrip('\n')

for element in list_line:
    if int(element[0]) == 0 and int(element[2]) == 0:
        sys.exit()
    if(int(element[0]) > int(element[2])):
        print(element[2] + " " + element[0])
    else:
        print(element)

Submission status: Runtime Error

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

for index, number in enumerate(dataset):
    print("Case {0}: {1}".format(index+1, str(number)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

for ls in num:
    ls.sort()
    print('{} {}'.format(ls[0], ls[1])

Submission status: Runtime Error

Solution code:
import sys

for line in sys.stdin:
    a, b = int(line.split())
    if(a <= b)
        print(a,b)
    else
        print(b,a)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while:
  a = list(map(int, input().split()))
  if sum(a) == 0:
    break
  print(' '.join.(list(map(str, sorted(a)))))

Submission status: Runtime Error

Solution code:
while True:
  a = list(map(int, input().split()))
  if sum(a) == 0:
    break
  print(' '.join.(list(map(str, sorted(a)))))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = []
i = 0
while True:
    n = input()
    n.sort()
    print("{0} {1}".format(n[0],n[1]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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)
    elif num1 == 0 and num2 == 0:
        break

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
while 1:
    a,b = sys.stdin.readline().split()
    if a == 0 and b == 0:
        break
    if a<b:print(a,b)
    else:print(b,a)

Submission status: Runtime Error

Solution code:
import sys

for x,y in enumerate(map(int, sys.stdin))
	if x==0 and y==0 :
		sys.exist()
	elif x<y :
		print(x,y)
	elif x>y :
		print(y,x)

Submission status: Runtime Error

Solution code:
import sys

while(True):
    x,y = map(int, sys.stdin.readline().split())
    if x==0 and y==0 :
        sys.exist()
    elif x<y :
        print(x,y)
    elif x>y :
        print(y,x)

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys

while 1:
  a , b = map(int,sys.stdin.readline().split())
  #if a == b == 0:
    break
  #elif a > b :
  #  print(b,a)
  #else :
#	print(a,b)

Submission status: Runtime Error

Solution code:
import sys

while 1:
  a , b = map(int, sys.stdin.readline().split())
  #if a == b == 0:
    break
  #elif a > b :
  #  print(b,a)
  #else :
#	print(a,b)

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
import sys

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

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
for c in range(3000):
    l = input().strip().split()
    x = int(l[0])
    y = int(l[1])
    if(x < 1 and y < 0):
        break
    elif(x > y):
        print("Case {0}: {1}".format(y,x))
    else:
        print("Case {0}: {1}".format(x,y))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
inport sys
for i in sys.stdin.readlines():
        a,b = i.strip().split()
        if a == 0 and b == 0:
                 break;
        if a < b:
                 print(a,b)
        else:
                 print(b,a)

Submission status: Runtime Error

Solution code:
inport sys
for i in sys.stdin.readlines():
        a,b = i.strip().split()
        if a == "0" and b == "0":
                 break;
        if a < b:
                 print(a,b)
        else:
                 print(b,a)

Submission status: Runtime Error

Solution code:
inport sys
for i in sys.stdin.readlines():
        a,b = i.strip().split()
        if a == "0" and b == "0":
                 break;
        if a < b:
                 print(a+" "+b)
        else:
                 print(b+" "+a)

Submission status: Runtime Error

Solution code:
inport sys
for i in sys.stdin.readlines():
        a,b = i.strip().split()
        if x == "0" and y == "0":
                break;

        if int(x) < int(y):
                print("{0} {1}".format(x,y))
        else:
                print("{0} {1}".format(y,x))

Submission status: Runtime Error

Solution code:
inport sys
for i in sys.stdin.readlines():
        a,b = i.strip().split()
        if x == "0" and y == "0":
                break;

        if int(x) < int(y):
                print("{} {}".format(x,y))
        else:
                print("{} {}".format(y,x))

Submission status: Runtime Error

Solution code:
1inport sys
for i in sys.stdin.readlines():
        a,b = i.strip().split()
        if a == "0" and b == "0":
                break;

        if int(a) < int(b):
                print("{0} {1}".format(a,b))
        else:
                print("{1} {0}".format(a,b))

Submission status: Runtime Error

Solution code:
1inport sys
for i in sys.stdin.readlines():
        a,b = i.strip().split()
        if a == "0" and b == "0":
                break;

        if int(a) < int(b):
                print("{} {}".format(a,b))
        else:
                print("{} {}".format(b,a))

Submission status: Runtime Error

Solution code:
1inport sys
for i in sys.stdin.readlines():
        a, b = i.strip().split()
        if a == "0" and b == "0":
                break;

        if int(a) < int(b):
                print("{} {}".format(a,b))
        else:
                print("{} {}".format(b,a))

Submission status: Runtime Error

Solution code:
i = j = x = y = 0

while i = 0:
  line = input()
  while line[j] != ' ':
    x += line[j]
    j += 1
  while j < len(line):
    y += line[j]
    j += 1

  x = int(x)
  y = int(y)

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

  if x >= y:
    print(y,end=' ')
    print(x)

  else:
    print(x,end=' ')
    print(y)

Submission status: Runtime Error

Solution code:
i = j = x = y = 0

while i >= 0:
  line = input()
  while line[j] != ' ':
    x = x + line[j]
    j += 1
  while j < len(line):
    y = y + line[j]
    j += 1

  x = int(x)
  y = int(y)

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

  if x >= y:
    print(y,end=' ')
    print(x)

  else:
    print(x,end=' ')
    print(y)

Submission status: Runtime Error

Solution code:
while True:
    num = int(input()).split()
    li = list(map(int,num))
    if li[0] and li[1] == 0: break
    li.sort()
    print('{} {}'.format(li[0],li[1]))

Submission status: Runtime Error

Solution code:
import sys

for i in sys.stdin:
    i = i.split(" ")
    x, y = int(i[0]),int(i[1])
    if x == y == 0: break
    elif x <= y:
       print('{0} {1}'.format(x, y))
    else:
       pritn('{0} {1}').format(y, x)

Submission status: Runtime Error

Solution code:
import sys

for i in sys.stdin:
    i = i.split(" ")
    x, y = int(i[0]),int(i[1])
    if x == y == 0:
       break
    elif x <= y:
       print('{0} {1}'.format(x, y))
    else:
       pritn('{0} {1}').format(y, x)

Submission status: Runtime Error

Solution code:
import sys

for i in sys.stdin:
    i = i.split(" ")
    x, y = int(i[0]), int(i[1])
    if x == y == 0: break
    elif x <= y:
       print('{0} {1}'.format(x, y))
    else:
       pritn('{0} {1}'.format(y, x))

Submission status: Runtime Error

Solution code:
import sys

for i in sys.stdin:
    i = i.split(" ")
    x, y = int(i[0]), int(i[1])
    if x == y == 0:
       break
    elif x <= y:
       print("{0} {1}".format(x, y))
    else:
       pritn("{0} {1}".format(y, x))

Submission status: Runtime Error

Solution code:
x, y = map(int, input().split())
x, y >= 1 and x, y <= 3000
x, y.sort
print "{0} {1}".format(x[0], y[1])

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

print(i)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
    i = input()
    if i == "0 0":
        break
    else:
        i.sort()
        print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
count = 1
while True:
  x,y = sys.stdin.readline().split.strip()
  if x == 0 and y == 0:
    break
    if x < y:
      result = (x,y)
    else:
      result = (y,x)
  print(result)
  count = count + 1

Submission status: Runtime Error

Solution code:
import sys
count = 1
while True:
  x,y = sys.stdin.readline().split().strip()
  if x == 0 and y == 0:
    break
    if x < y:
      result = (x,y)
    else:
      result = (y,x)
  print(result)
  count = count + 1

Submission status: Runtime Error

Solution code:
import sys
while True:
  x,y = sys.stdin.readline().split()
  if x == 0 and y == 0:
    break

  if x > y:
    print(y,x)
  print(x,y)

Submission status: Runtime Error

Solution code:
import sys
count = 1
while True:
  x,y = sys.stdin.readline().split()
  if x == 0 and y == 0:
    break

  if x > y:
    print(y,x)
  print(x,y)
  count = count + 1

Submission status: Runtime Error

Solution code:
import sys
count = 1
while True:
  x,y = sys.stdin.readline().split()
  if x == 0 and y == 0:
    break

  if x > y:
    print(y,x)
  else:
  print(x,y)
  count = count + 1

Submission status: Runtime Error

Solution code:
list=[]
x=1
y=1
while  (len(list)-1) < 3000 or (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: Runtime Error

Solution code:
list=[]
x=1
y=1
while (len(list)-1) < 3000 or (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: Runtime Error

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: Runtime Error

Solution code:
import sys
num = sys.stdin

while True:
  a,b = map(int,num.readline().split())
  if a == 0 and b == 0:
  break

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

Submission status: Runtime Error

Solution code:
import sys
num = sys.stdin

while True:
  a,b = map(int,num.readline().split())
  if a == 0 and b == 0:
  break

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

Submission status: Runtime Error

Solution code:
import sys
num = sys.stdin
while True:
  a,b = map(int,num.readline().split())
  if (a == 0) and (b == 0):
  break
    if a < b :print(a,b)
    else:print(b,a)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
while True:
    a,b=map(int,stdin.readline().split())
    if a==0 and b==0:
        break
    if a<b:print(a,b)
    else:print(b,a)

Submission status: Runtime Error

Solution code:
list1=[]
while True:
    x = str(input(""))
    if x == "0":
        break
    else:
        list1.append(x)

for i,v in enumerate(list1):
    x,y = map(int,v.split())
    if x < y:
        print(str(x) + " " + str(y))
    else:
        print(str(y) + " " + str(x))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
i=1
while 1
    x,y = map(int,input().split())
    n=[x,y]
    n.sort()
    print n
    i=i+1

Submission status: Runtime Error

Solution code:
i=0
while 1
    x,y = map(int,input().split())
    if x==0 or y==0;
        break

    n=[x,y]
    n.sort()
    print n
    i+=1

Submission status: Runtime Error

Solution code:
i = 0
while 1:
    x,y = map(int,input().split())
    i += 1
    if x == 0 or y==0:
        break
    n=[x,y]
    n.sort()
    print n

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
x = [int(i) for i in sys.stdin.readlines()]

for i, p in iteritems(x):
    if i == 0 and p == 0:
        break
    elif i < p:
        print(i p)
    elif i> p:
        print(p i)
    else:
        print(i p)

Submission status: Runtime Error

Solution code:
import sys
x = [int(i) for i in sys.stdin.readlines()]

for t in x:
    i = t[0]
    p = t[1]
    if i == 0 and p == 0:
        break
    elif i < p:
        print(i p)
    elif i> p:
        print(p i)
    else:
        print(i p)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
 
while True :
    a, b = map(int, sys.stdin.readline().stlip())
    if (a == 0) & (b == 0) :
        break
    
    if a < b : print(a, b)
    else : print(b, a)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x=int(input())
y=int(input())
if x<y:
    print(x,y)
else:
    print(y,x)

Submission status: Runtime Error

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: Runtime Error

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