import java.util.*;

public class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(buf.equals("0 0")){
            	break;
			}
            String[] num = buf.split(" ");
            if(Integer.parseInt(num[0]) < Integer.parseInt(num[1])){
            	System.out.println(num[0]+" "+num[1]);
            }else{
            	System.out.println(num[1]+" "+num[0]);
            }
        }
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(buf.equals("0 0")){
            	break;
			}
            String[] num = buf.split(" ");
            if(Integer.parseInt(num[0]) < Integer.parseInt(num[1])){
            	System.out.println(num[0]+" "+num[1]);
            }else{
            	System.out.println(num[1]+" "+num[0]);
            }
        }
	}
} Main public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(buf.equals("0 0")){
            	break;
			}
            String[] num = buf.split(" ");
            if(Integer.parseInt(num[0]) < Integer.parseInt(num[1])){
            	System.out.println(num[0]+" "+num[1]);
            }else{
            	System.out.println(num[1]+" "+num[0]);
            }
        }
	} main {
		Scanner in = new Scanner(System.in);
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(buf.equals("0 0")){
            	break;
			}
            String[] num = buf.split(" ");
            if(Integer.parseInt(num[0]) < Integer.parseInt(num[1])){
            	System.out.println(num[0]+" "+num[1]);
            }else{
            	System.out.println(num[1]+" "+num[0]);
            }
        }
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) while(in.hasNext()) {
            String buf = in.nextLine();
            if(buf.equals("0 0")){
            	break;
			}
            String[] num = buf.split(" ");
            if(Integer.parseInt(num[0]) < Integer.parseInt(num[1])){
            	System.out.println(num[0]+" "+num[1]);
            }else{
            	System.out.println(num[1]+" "+num[0]);
            }
        } in.hasNext() in.hasNext in {
            String buf = in.nextLine();
            if(buf.equals("0 0")){
            	break;
			}
            String[] num = buf.split(" ");
            if(Integer.parseInt(num[0]) < Integer.parseInt(num[1])){
            	System.out.println(num[0]+" "+num[1]);
            }else{
            	System.out.println(num[1]+" "+num[0]);
            }
        } String buf = in.nextLine(); buf in.nextLine() in.nextLine in if(buf.equals("0 0")){
            	break;
			} buf.equals("0 0") buf.equals buf "0 0" {
            	break;
			} break; String[] num = buf.split(" "); num buf.split(" ") buf.split buf " " if(Integer.parseInt(num[0]) < Integer.parseInt(num[1])){
            	System.out.println(num[0]+" "+num[1]);
            }else{
            	System.out.println(num[1]+" "+num[0]);
            } Integer.parseInt(num[0]) < Integer.parseInt(num[1]) Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 {
            	System.out.println(num[0]+" "+num[1]);
            } System.out.println(num[0]+" "+num[1]) System.out.println System.out System System.out num[0]+" "+num[1] num[0]+" "+num[1] num[0] num 0 " " num[1] num 1 {
            	System.out.println(num[1]+" "+num[0]);
            } System.out.println(num[1]+" "+num[0]) System.out.println System.out System System.out num[1]+" "+num[0] num[1]+" "+num[0] num[1] num 1 " " num[0] num 0 String[] arg arg public class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(buf.equals("0 0")){
            	break;
			}
            String[] num = buf.split(" ");
            if(Integer.parseInt(num[0]) < Integer.parseInt(num[1])){
            	System.out.println(num[0]+" "+num[1]);
            }else{
            	System.out.println(num[1]+" "+num[0]);
            }
        }
	}
} public class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(buf.equals("0 0")){
            	break;
			}
            String[] num = buf.split(" ");
            if(Integer.parseInt(num[0]) < Integer.parseInt(num[1])){
            	System.out.println(num[0]+" "+num[1]);
            }else{
            	System.out.println(num[1]+" "+num[0]);
            }
        }
	}
} Main
import java.util.*;

public class Main {
	public static void main(String[] arg){
		Scanner in = new Scanner(System.in);
		while(in.hasNext()) {
            String buf = in.nextLine();
            if(buf.equals("0 0")){
            	break;
			}
            String[] num = buf.split(" ");
            if(Integer.parseInt(num[0]) < Integer.parseInt(num[1])){
            	System.out.println(num[0]+" "+num[1]);
            }else{
            	System.out.println(num[1]+" "+num[0]);
            }
        }
	}
}