import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);

int i=1;
int tmp;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if(x==0 && y==0){break;}

if(x>y){
tmp =x;
x=y;
y=tmp;
}

System.out.println(x+" "+y);
i=i+1;

}

}
} import java.util.Scanner; Scanner java.util public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);

int i=1;
int tmp;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if(x==0 && y==0){break;}

if(x>y){
tmp =x;
x=y;
y=tmp;
}

System.out.println(x+" "+y);
i=i+1;

}

}
} Main public static void main(String[] args) {
Scanner sc= new Scanner(System.in);

int i=1;
int tmp;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if(x==0 && y==0){break;}

if(x>y){
tmp =x;
x=y;
y=tmp;
}

System.out.println(x+" "+y);
i=i+1;

}

} main {
Scanner sc= new Scanner(System.in);

int i=1;
int tmp;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if(x==0 && y==0){break;}

if(x>y){
tmp =x;
x=y;
y=tmp;
}

System.out.println(x+" "+y);
i=i+1;

}

} Scanner sc= new Scanner(System.in); sc new Scanner(System.in) int i=1; i 1 int tmp; tmp while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if(x==0 && y==0){break;}

if(x>y){
tmp =x;
x=y;
y=tmp;
}

System.out.println(x+" "+y);
i=i+1;

} true {
int x = sc.nextInt();
int y = sc.nextInt();
if(x==0 && y==0){break;}

if(x>y){
tmp =x;
x=y;
y=tmp;
}

System.out.println(x+" "+y);
i=i+1;

} int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc if(x==0 && y==0){break;} x==0 && y==0 x==0 x 0 y==0 y 0 {break;} break; if(x>y){
tmp =x;
x=y;
y=tmp;
} x>y x y {
tmp =x;
x=y;
y=tmp;
} tmp =x tmp x x=y x y y=tmp y tmp System.out.println(x+" "+y) System.out.println System.out System System.out x+" "+y x+" "+y x " " y i=i+1 i i+1 i 1 String[] args args public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);

int i=1;
int tmp;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if(x==0 && y==0){break;}

if(x>y){
tmp =x;
x=y;
y=tmp;
}

System.out.println(x+" "+y);
i=i+1;

}

}
} public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);

int i=1;
int tmp;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if(x==0 && y==0){break;}

if(x>y){
tmp =x;
x=y;
y=tmp;
}

System.out.println(x+" "+y);
i=i+1;

}

}
} Main
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);

int i=1;
int tmp;
while(true){
int x = sc.nextInt();
int y = sc.nextInt();
if(x==0 && y==0){break;}

if(x>y){
tmp =x;
x=y;
y=tmp;
}

System.out.println(x+" "+y);
i=i+1;

}

}
}