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

Solution code:
num_str = []
while True:
	inputValue = input()
	if inputValue == "0 0":
		break
	num_str.append(inputValue)
for i in range(0, len(num_str)):
	a, b = [int(j) for j in num_str[i].split(" ")]
	if a > b:
		print(b, a)
	else:
		print(a, b)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
cnt = 0
while 1:
    inp = list(map(int, input().split()))
    inp.sort()
    cnt += 1
    if inp == [0, 0] or cnt >= 3000:
        break
    print("{} {}".format(inp[0], inp[1]))

Submission status: Accepted

Solution code:
import sys

for row in sys.stdin.readlines():
    x = int(row.rstrip().split()[0])
    y = int(row.rstrip().split()[1])
    
    if int(x) == 0 and int(y) == 0:
        break
    else:
        print(*(sorted([x,y])))

Submission status: Accepted

Solution code:
for i in range(3000):
    try:
        x,y=list(map(int,input().split()))
        if x!=0 or y!=0:
            if x>y:
                print(str(y)+' '+str(x))
            else:
                print(str(x)+' '+str(y))
    except EOFError:
        break

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

    if a > b:
        a,b = b,a

    print(f"{a} {b}")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
result = []
while (a or b):
    if (a > b):
        temp = a
        a = b
        b = temp
    result.append((a, b))
    a, b = map(int, input().split())

for item in result:
    print(item[0], end = ' ')
    print(item[1])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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)
    x, y = map(int, input().split())

Submission status: Accepted

Solution code:
a = []
for i in range(3000):
    b,c = map(int,input().split())
    if b == 0 and c == 0:
        break
    a.append([b,c])
for i in a:
    i.sort()
    print("{0} {1}".format(i[0],i[1]))

Submission status: Accepted

Solution code:
# coding : utf-8
list = []
for i in range(3000):
    x, y = map(int, input().split())
    if x == 0 and y == 0:
        break
    list.append([x, y])
for x, y in list:
    if x < y:
        print (x, y)
    else:
        print (y, x)

Submission status: Accepted

Solution code:
# coding:utf-8
while True:
    n,m=map(int,input().split())
    if n==0 and m==0:
        break
    if n>m:
        print(m,n)
    else:
        print(n,m)

Submission status: Accepted

Solution code:

while True:
    a, b=[int(i) for i in input().split()]
    if a==0 and b==0:
        break
    if a > b:
        print("{0} {1}".format(b, a))
    else:
        print("{0} {1}".format(a, b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print_values = []
while True:
    input_value = input().split()
    a = int(input_value[0])
    b = int(input_value[1])
    if a == 0 and b == 0:
        break
    elif a > b:
        print_values.append([b, a])
    else:
        print_values.append([a, b])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
Fin = (True if a == 0 and b == 0 else False)
printer = []
while not Fin:
    printer.append([min(a, b), max(a, b)])
    a, b = map(int, input().split())
    if a == 0 and b == 0:
        Fin = True
for i in range(len(printer)):
    print(printer[i][0], printer[i][1])

Submission status: Accepted

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

		if x + y:
			print("%s %s" %((x, y) if x <= y else (y, x)))

		else:
			break

if __name__ == '__main__':
	run()

Submission status: Accepted

Solution code:
import sys
input_lines = sys.stdin.readlines()[:-1]
for input_line in input_lines:
    a, b = [int(i) for i in input_line.split()]
    if a > b:
        print('{0} {1}'.format(b, a))
    else:
        print(input_line.rstrip())

Submission status: Accepted

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

Submission status: Accepted

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

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

while not x==y==0:
	if x>=y:
		print(y,x)
	else:
		print(x,y)
	x,y=map(int,input().split())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x, y = (int(i) for i in input().split())
while x!=0 or y!=0:
    if x < y:
        print("{0} {1}".format(x,y))
    else:
        print("{0} {1}".format(y,x))
    x, y = (int(i) for i in input().split())

Submission status: Accepted

Solution code:
sss = input()
counter = 1
while not sss == '0 0':
	ss = sss.split(' ')
	a = int(ss[0])
	b = int(ss[1])
	if a < b: print(a,b)
	else: print(b,a)
	sss = input()

Submission status: Accepted

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

def main():

	while True:
		x,y = map(int,raw_input().split())
		if x == y == 0:
			break
		if x > y:
			temp = x
			x = y
			y = temp
		print('%d %d' % (x,y))

if __name__ == "__main__":

	main()

Submission status: Accepted

Solution code:
data = []
tmp = []
for x in range(0,1000000):
    a,b = map(int, input().split())
    if a==0:
        if b==0:
            break
        pass
    data.append((a,b))
for x in range(0,len(data)):
    tmp = list(data.pop(0))
    tmp.sort()
    print(tmp[0],tmp[1])
    tmp.clear()

Submission status: Accepted

Solution code:
xy=[]
while True:
    (x,y) = map(int,raw_input().split())
    if x==y==0:
        break
    xy.append(sorted([x,y]))
for i in xy:
    print i[0], i[1]

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
package main

import "fmt"

func main(){
	var a, b int
	for ;;{
		fmt.Scan(&a, &b)
		if a == 0 && b == 0 {
			break
		}
		fmt.Printf("%d %d\n", b, a)
	}
}

Submission status: Runtime Error

Solution code:
for i in range(0, 3000):
    array = map(int, input().split(' '))
    if x == 0 and y == 0:
        break
    else:
        print(' '.join(map(str, sorted(array))))

Submission status: Runtime Error

Solution code:
for i in range(0, 3000):
    array = map(int, input().split(' '))
    if array[0] == 0 and array[1] == 0:
        break
    else:
        print(' '.join(map(str, sorted(array))))

Submission status: Runtime Error

Solution code:
for i in range(0, 3000):
    array = map(int, input().split(' '))
    print(array)
    if array[0] == 0 and array[1] == 0:
        break
    else:
        print(' '.join(map(str, sorted(array))))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

def check(lis):
    if lis[0] > lis[1]:
        return lis[::-1]
    else:
        return lis


while True:
    l = list(map(int, input().spilt()))
    if sum(l) == 0:
        break
    print(*check(l))

Submission status: Runtime Error

Solution code:
while True:
    str=input().split
    int=[int(s) for s in str]
    if int[0]==0 and int[1]==0:
        break
    if int[0]<int[1]:
        print("{} {}".format(int[0],int[1]))
    if int[0]>int[1]:
        print("{} {}".format(int[1],int[0]))

Submission status: Runtime Error

Solution code:
while True:
    str_=input().split
    int_=[int(s) for s in str_]
    if int_[0]==0 and int_[1]==0:
        break
    if int_[0]<int_[1]:
        print("{} {}".format(int_[0],int_[1]))
    if int_[0]>int_[1]:
        print("{} {}".format(int_[1],int_[0]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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 == y:
        print(f"{x} {y}")
    elif x == 0 and y == 0:
        break

Submission status: Runtime Error

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

Solution code:
x,y=map(int,input().split())
if x>y :
    print(y,x)
elif x=y=0:
    print()
else :
    print(x,y)
for i in :

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
repetition = True
while repetition == True:
    a, b = map(int, input().split(" "))
    if a > b:
        a, b = b, a
    print("%d %d" % (a,b))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

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

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

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

Submission status: Runtime Error

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

    if x == 0 and y == 0:

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
for i in range(10000):
    a, b = map(int, input().split())
    
    if a > b:
        print(a, b)
    else
        print(b, a)

Submission status: Runtime Error

Solution code:
for i in range(3000):
    a, b = map(int(), input().split())
    
    if a > b:
        print(a, b)
    else
        print(b, a)

Submission status: Runtime Error

Solution code:
for i in range(3000):
    a, b = map(int, input().split())
    
    if a > b:
        print(a, b)
    else
        print(b, a)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
for i in range(3000):
    a, b = map(int, input().split())
    
    if a == 0 and b == 0
        break
    elif a < b:
        print(a, b)
    else
        print(b, a)

Submission status: Runtime Error

Solution code:
for i in range(3000):
    a, b = map(int, input().split())
    
    if a == b == 0
        break
    elif a < b:
        print(a, b)
    else
        print(b, a)

Submission status: Runtime Error

Solution code:
for i in range(3000):
    a, b = map(int, input().split())
    
    if a == 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, inpu().split())
    if x == 0 and y == 0:
        break

    if x > y:
        z = x
        x = y
        y = z

    print(x, y)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
for i in range(3000):
    x,y = (int,input().split)
    if x!=0 and y!=0:
        print(min([x,y]), max([x,y]))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
for i in range(3000):
    x,y = (int,input().split)
    if x!=0 and y!=0:
        print(min([x,y]), max([x,y]))
    else:
        break

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:

while True:
	a,b  = map(int, input().split())
	if a,b = 0,0: break
	if a > b: a,b = b,a
	print(f"{a} {b}")

Submission status: Runtime Error

Solution code:

while True:
	a,b  = map(int, input().split())
	if a,b == 0,0: break
	if a > b: a,b = b,a
	print(f"{a} {b}")

Submission status: Runtime Error

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

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

Solution code:
for i in range(3000):
    string = input()
    numbers = string.split(' ')
    x, y = numbers
    if x = 0 and y = 0:
        break
    elif x < y:
        print(x, y)
    else:
        print(y, x)

Submission status: Runtime Error

Solution code:
for i in range(3000):
  a = input().split()
  x = int(a[0])
  y = int(a[1])
  if x == y:
    print(x,y)
  elif x < y:
    print(x,y)
  else:
    print(y,x)

Submission status: Runtime Error

Solution code:
i = 1

while True:
  x = input()
  if x == "0":
    break
  print ("Case " + str(i) + ": " + str(x))
  i += 1

Submission status: Runtime Error

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

Solution code:
You are not allowed to see this code.

Submission status: Runtime Error

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

for line in output:
	print(line)

Submission status: Runtime Error

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

for line in output:
	print(line)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Solution code:
for i in range(3000):
    a, b = map(int, input().split())
    if a <= b:
        print(a, b)
    else:
        print(b, a)

Submission status: Runtime Error

Solution code:
for i in range(3001):
    a, b = map(int, input().split())
    if a <= b:
        print(a, b)
    else:
        print(b, a)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

  if x+y==0:
    break
  if x>=y:
    tmp = x
    x=y
    y=tmp

  print(x,y)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

 if x[0] == 0 and x[1] == 0:
  break

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

Submission status: Runtime Error

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

 if x[0] == 0 and x[1] == 0:
  break

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

Submission status: Runtime Error

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

 if x[0] == 0 and x[1] == 0:
  break

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
list = []
while True:
    num = list(map(int,input()))
    if(num[0] == 0 and num[1] == 0):
        break
    else:
        if(num[0] > num[1]):
            print("%d %d" %(num[1],num[0]))
        else:
            print("%d %d" %(num[0],num[1]))

Submission status: Runtime Error

Solution code:
list = []
while True:
    num = list(map(int,input().split()))
    if(num[0] == 0 and num[1] == 0):
        break
    else:
        if(num[0] > num[1]):
            print("%d %d" %(num[1],num[0]))
        else:
            print("%d %d" %(num[0],num[1]))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Solution code:
#include <iostream>
using namespace std;

int main()
{
　　int x, y;
　　while(true) {
　　  cin >> x >> y;
　　  if(x == 0 && y == 0) {
　　    break;
　　  }
　　  if(x>y) {
　　    cout << y << " " << x << endl;
　　  }
　　  else {
　　    cout << x << " " << y << endl;
　　  }
　　}
}

Submission status: Runtime Error

Solution code:
while True:
    results = list(map(str, sorted(map(int, input().split()))))
    if len(results) == len(list(filter(lambda item: item == '0', results)))
        break
    print ' '.join(results)

Submission status: Runtime Error

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

listx.sort()
listy.sort()

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

Submission status: Runtime Error

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

listx.sort()
listy.sort()

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

Submission status: Runtime Error

Solution code:
i = 0
while True:
    x,y = raw_input()
    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
    i += 1
    #print "Case %d: %d" % (i, x)

Submission status: Runtime Error

Solution code:

while True:
    x,y = raw_input()
    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: Runtime Error

Solution code:
while True:
    x,y = raw_input()
    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: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
while 1:
  x, y = raw_input()
  if x == 0 and y ==0:
    break
  elif y > x:
    print "%s %s" & (y,x)
  else:
    print "&s &s" & (x,y)

Submission status: Runtime Error

Solution code:
while 1:
  x, y = map(int, raw_input())
  if x == 0 and y ==0:
    break
  elif y > x:
    print "%d %d" & (y,x)
  else:
    print "&d &d" & (x,y)

Submission status: Runtime Error

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