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:
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 and 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 && y != 0):
    if x <= y :
        print(x, y)
    elif x > y :
        print(y, x)

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

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

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

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

Submission status: Runtime Error

Solution code:
import sys
for xy in sys.stdin:
    x, y  = xy.split()
    i   if x == '0' and y == '0':
        break
    elif int(x) > int(y):
        x, y = y, x
    print('%s %s'%(x, y))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import numpy as np
n=[]
line=''
while line != '0 0':
    n.append(list(map(int,input().split())))
n=np.array(n)
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: Runtime Error

Solution code:

import numpy as np
n=[]
line=''
while line != [0,0]:
    line=list(map(int,input().split()))
    n.append(line)
n=np.array(n)
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: Runtime Error

Solution code:

import numpy as np
n=[]
line=''
while line != [0,0]:
    line=list(map(int,input().split()))
    n.append(line)
n=np.array(n)

Submission status: Runtime Error

Solution code:

import numpy as np
n=[]
line=''
while line != [0,0]:
    line=list(map(int,input().split()))
    n.append(line)

Submission status: Runtime Error

Solution code:

import numpy as np
n=[]
line=''

Submission status: Runtime Error

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

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]))javascript:void(0)

Submission status: Runtime Error

Solution code:
while True:
    x, y = map(int, input().split())
    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 == y == 0):
        break
    else 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 == y == 0:
    break
  print(min(x, y) max(x, y))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
  line = input().split()
  if line == '0 0':
    break
  if int(line[0]) < int(line[1]):
    print('{} {}'.format(line[0],line[1]))
  else: print('{} {}'.format(line[1], line[0]))

Submission status: Runtime Error

Solution code:
a=[]
while True:
 n=input()
 if int(n)==0:break
 a.append(n)
for s in a:
 x,y=s.split()
 if x>y:print(f'{y} < x')
 else:print(s)

Submission status: Runtime Error

Solution code:
a=[]
while True:
 n=input()
 if int(n)==0:break
 a.append(n)
for s in a:
 x,y=s.split()
 if x>y:print(f'{y} < {x}')
 else:print(s)

Submission status: Runtime Error

Solution code:
a=[]
while True:
 n=input()
 if int(n)==0:break
 a.append(n)
for s in a:
 x,y=map(int,s.split())
 if x>y:print(f'{y} {x}')
 else:print(s)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=[]
import sys
for s.strip() 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: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = input()
 
while x != "0":    
    a=x.sort()
    for i in range(2):
        print(a[0],a[1])
    x = input()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while list[0] != 0 or list[1] != 0:
    list = [x for x in input().split( )]
    print(' '.join(map(str,sorted(list))))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if(x == 0 & y == 0):
    false
elif(x < y) :
    print("{0} {1}".format(x, y))
else:
    print("{0} {1}".format(y, x))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while True:
	x = list(int(i) for i in input().split())
	x.sort()
	print(x[0],x[1],sep=" ")

Submission status: Runtime Error

Solution code:
while True:
  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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
cnt = 1
c = int(input().split())
while c != 0:
 c.sort()
 print("Case {0}: {1} {2}".format(cnt,c[0],c[1]))
 c = int(input().split())
 cnt += 1

Submission status: Runtime Error

Solution code:
cnt = 1
c = list(map(int(input().split())))
while c != 0:
 c.sort()
 print("Case {0}: {1} {2}".format(cnt,c[0],c[1]))
 c = list(map(int(input().split())))
 cnt += 1

Submission status: Runtime Error

Solution code:
cnt = 1
c = list(map(int,input().split()))
while c != 0:
 c.sort()
 print("Case {0}: {1} {2}".format(cnt,c[0],c[1]))
 c = list(map(int,input().split()))
 cnt += 1

Submission status: Runtime Error

Solution code:
def Hantei(a,b):
    if a <= b:
        print("{} {}".format(a,b))
    elif a > b:
        print("{} {}".format(b,a))


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

Submission status: Runtime Error

Solution code:
a=int(input())
   for i in range(a):
     print("Hello World")a=int(input())

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while(True):
  temp = raw_input()
  temp_list = temp.split()
  x = int(temp_list[0])
  y = int(temp_list[1])
  if x == y and x == 0:
    break
  else:
    print(str(min([x, y]) ) + " " + str(max([x, y]) )

Submission status: Runtime Error

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

if a < b < c:
    result = "Yes"

else:
    result = "No"

print(result)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

while True:

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

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

Submission status: Runtime Error

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

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

print(sorted(list, reverse=True))

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(srt(x) + " " + str(y))

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

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

    else:
        print(str(y) + " " + str(x))

Submission status: Runtime Error

Solution code:
for i in range(3001):

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
x,y = map(int,input().split())
z =[x,y]
while z[1] != 0 or z[2] != 0:
    z.sort()
    print(z[1],z[2])
    x,y = map(int, input().split())
    z = [x, y]

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
while true:
    
    ary = list(map(int, input().split()))
    
    if ary[0]+ary[1] == 0 :
        break
    
    ary.sort()
    
    print("{} {}".format(ary[0], ary[1]))

Submission status: Runtime Error

Solution code:
while true:
    
    ary = list(map(int, input().split()))
    
    if ary[0]+ary[1] == 0 :
        break
    
    ary.sort()

    print(ary[0], ary[1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num = input().split(' ')
x = num[0]
y = num[1]

if x > y:
  tmp = x
  x = y
  y = tmp

else:
  break

print(x + ' ' +y)

Submission status: Runtime Error

Solution code:
num = input().split(' ')
x = num[0]
y = num[1]

if x > y:
  tmp = x
  x = y
  y = tmp

elif x = y = 0:
  exit()

else:
  break

print(x + ' ' +y)

Submission status: Runtime Error

Solution code:
while True:
    a,b = map(int, input().split()
    if a ==0 and b == 0: break
    if a > b:
        c = a
        a = b
        b = c
    print("{} {}".format(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:
        c = a
        a = b
        b = c
    print("{} {}".format(a,b))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import java.util.Scanner;
class Main
{
 public static void main(String args[])
 {
  int a,b;
  Scanner sc = new Scanner(System.in);
  while(True){
  a=sc.nextInt();
  b=sc.nestInt();
  if(a==0 && b==0)
    break;
  else if(a<b)
    System.out.println(a +b);
  else
    System.out.println(b +a);}
 }
}

Submission status: Runtime Error

Solution code:
import java.util.Scanner;
class Main
{
 public static void main(String args[])
 {
  int a,b;
  Scanner sc = new Scanner(System.in);
  while(True){
  a=sc.nextInt();
  b=sc.nestInt();
  if(a==0 && b==0)
    break;
  else if(a<b)
    System.out.println(a+" "+b);
  else
    System.out.println(b+" "+a);}
 }
}

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <sstream>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
    while (1){
        int i, j ;
        cin >> i >> j ;
        if ( i <= j) {
            cout << i << " " << j << endl;
        } else{
            cout << j << " " << i << endl;
        }
        
    }
    return 0;
}

Submission status: Runtime Error

Solution code:
x,y = int(input())
x,y.sort()
print(x,y)

Submission status: Runtime Error

Solution code:
import sys
for line in sys.stdin:
    xy = sorted(map(int , line.split()))
    if xy[0] == 0 and xy[1] == 0: break
    print(*xy)

Submission status: Runtime Error

Solution code:
import sys
for line in sys.stdin:
    xy = sorted(map(int , line.split()))
    if xy[0] == 0 and xy[1] == 0: break
    print(*xy)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
from __future__ import division, print_function
from sys import stdin

for line in stdin:
    a,b = map(int, raw_input().split())
    
    if (a == 0 and b == 0):
        break

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

Submission status: Runtime Error

Solution code:
from __future__ import division, print_function
from sys import stdin

for line in stdin:
    a,b = map(int, line.split())
    if (a == 0 and b == 0):
        break
    if a > b:
       print b, a
    else:
       print a, b

Submission status: WA: Presentation Error

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

print("")

for x in ans:
  print(" ".join(map(str, x)))

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
result_list = []

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

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

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
result_list = []
flag = True

while flag:
	input_list = []
	input_value = input()
	split_input_value = input_value.split()
    
	input_valueA = int(split_input_value[0])
	input_valueB = int(split_input_value[1])

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

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

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

Solution code:
result_list = []
flag = True

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

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

Submission status: WA: Presentation Error

Solution code:
result_list = []
flag = True

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

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

Submission status: WA: Presentation Error

Solution code:
class DataSet:
    def __init__(self,x,y):
        self.x = x
        self.y = y

    def swap(self):
        temp = self.y
        self.y = self.x
        self.x = temp

def main():
    data = []
    while 1:
        # ????????????????????????????????????
        n = input().split()
        x = int(n[0])
        y = int(n[1])

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

        data.append(DataSet(x, y))

    length = len(data)
    what_large = length > 3000

    if what_large:
        print("Too Large")
    else:
        for i in range(len(data)):
            d_val = data[i]
            if d_val.x > d_val.y:
                d_val.swap()

            print("{0} {1} ".format(d_val.x,d_val.y))

if __name__ == '__main__':
    main()

Submission status: WA: Presentation Error

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

Submission status: WA: Presentation Error

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