import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
while(true){
String A=scan.next();
String B=scan.next();
int a=Integer.parseInt(A);
int b=Integer.parseInt(B);
if(a==0&&b==0)
	break;
int okiba;
if(a>b){
okiba=a;
a=b;
b=okiba;
}
System.out.println(a+" "+b);
}
}
} import java.util.Scanner; Scanner java.util class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
while(true){
String A=scan.next();
String B=scan.next();
int a=Integer.parseInt(A);
int b=Integer.parseInt(B);
if(a==0&&b==0)
	break;
int okiba;
if(a>b){
okiba=a;
a=b;
b=okiba;
}
System.out.println(a+" "+b);
}
}
} Main public static void main(String[] args){
Scanner scan=new Scanner(System.in);
while(true){
String A=scan.next();
String B=scan.next();
int a=Integer.parseInt(A);
int b=Integer.parseInt(B);
if(a==0&&b==0)
	break;
int okiba;
if(a>b){
okiba=a;
a=b;
b=okiba;
}
System.out.println(a+" "+b);
}
} main {
Scanner scan=new Scanner(System.in);
while(true){
String A=scan.next();
String B=scan.next();
int a=Integer.parseInt(A);
int b=Integer.parseInt(B);
if(a==0&&b==0)
	break;
int okiba;
if(a>b){
okiba=a;
a=b;
b=okiba;
}
System.out.println(a+" "+b);
}
} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) while(true){
String A=scan.next();
String B=scan.next();
int a=Integer.parseInt(A);
int b=Integer.parseInt(B);
if(a==0&&b==0)
	break;
int okiba;
if(a>b){
okiba=a;
a=b;
b=okiba;
}
System.out.println(a+" "+b);
} true {
String A=scan.next();
String B=scan.next();
int a=Integer.parseInt(A);
int b=Integer.parseInt(B);
if(a==0&&b==0)
	break;
int okiba;
if(a>b){
okiba=a;
a=b;
b=okiba;
}
System.out.println(a+" "+b);
} String A=scan.next(); A scan.next() scan.next scan String B=scan.next(); B scan.next() scan.next scan int a=Integer.parseInt(A); a Integer.parseInt(A) Integer.parseInt Integer A int b=Integer.parseInt(B); b Integer.parseInt(B) Integer.parseInt Integer B if(a==0&&b==0)
	break; a==0&&b==0 a==0 a 0 b==0 b 0 break; int okiba; okiba if(a>b){
okiba=a;
a=b;
b=okiba;
} a>b a b {
okiba=a;
a=b;
b=okiba;
} okiba=a okiba a a=b a b b=okiba b okiba System.out.println(a+" "+b) System.out.println System.out System System.out a+" "+b a+" "+b a " " b String[] args args
import java.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
while(true){
String A=scan.next();
String B=scan.next();
int a=Integer.parseInt(A);
int b=Integer.parseInt(B);
if(a==0&&b==0)
	break;
int okiba;
if(a>b){
okiba=a;
a=b;
b=okiba;
}
System.out.println(a+" "+b);
}
}
}