import java.util.Scanner;

public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int x,y;

	while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    }
    }
} import java.util.Scanner; Scanner java.util public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int x,y;

	while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    }
    }
} Main public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int x,y;

	while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    }
    } main {
	Scanner scan = new Scanner(System.in);
	int x,y;

	while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x x y; y while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    } true {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    } x = scan.nextInt() x scan.nextInt() scan.nextInt scan y = scan.nextInt() y scan.nextInt() scan.nextInt scan if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x); x == 0 && y == 0 x == 0 x 0 y == 0 y 0 break; if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x); x <= y x y System.out.println(x+" "+y) System.out.println System.out System System.out x+" "+y x+" "+y x " " y if( x > y )
		    System.out.println(y+" "+x); x > y x y System.out.println(y+" "+x) System.out.println System.out System System.out y+" "+x y+" "+x y " " x String argv[] argv public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int x,y;

	while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    }
    }
} public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int x,y;

	while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    }
    }
} Main
import java.util.Scanner;

public class Main{
    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);
	int x,y;

	while(true)
	    {
		x = scan.nextInt();
		y = scan.nextInt();
		if( x == 0 && y == 0 )
		    break;
		else if( x <= y)
		    System.out.println(x+" "+y);
		else if( x > y )
		    System.out.println(y+" "+x);
	    }
    }
}