import java.util.*;

public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        for(int x, y; (x = scn.nextInt()) != 0 | (y = scn.nextInt()) != 0;) {
            System.out.println((x < y ? x : y) + " " + (x > y ? x : y));
        }
    }
} import java.util.*; util.* java public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        for(int x, y; (x = scn.nextInt()) != 0 | (y = scn.nextInt()) != 0;) {
            System.out.println((x < y ? x : y) + " " + (x > y ? x : y));
        }
    }
} Main private static final Scanner scn = new Scanner(System.in); scn new Scanner(System.in) public static void main(String[] args) {
        for(int x, y; (x = scn.nextInt()) != 0 | (y = scn.nextInt()) != 0;) {
            System.out.println((x < y ? x : y) + " " + (x > y ? x : y));
        }
    } main {
        for(int x, y; (x = scn.nextInt()) != 0 | (y = scn.nextInt()) != 0;) {
            System.out.println((x < y ? x : y) + " " + (x > y ? x : y));
        }
    } for(int x, y; (x = scn.nextInt()) != 0 | (y = scn.nextInt()) != 0;) {
            System.out.println((x < y ? x : y) + " " + (x > y ? x : y));
        } int x, y; int x x y; y (x = scn.nextInt()) != 0 | (y = scn.nextInt()) != 0 (x = scn.nextInt()) != 0 (x = scn.nextInt()) x scn.nextInt() scn.nextInt scn 0 (y = scn.nextInt()) != 0 (y = scn.nextInt()) y scn.nextInt() scn.nextInt scn 0 {
            System.out.println((x < y ? x : y) + " " + (x > y ? x : y));
        } {
            System.out.println((x < y ? x : y) + " " + (x > y ? x : y));
        } System.out.println((x < y ? x : y) + " " + (x > y ? x : y)) System.out.println System.out System System.out (x < y ? x : y) + " " + (x > y ? x : y) (x < y ? x : y) + " " + (x > y ? x : y) (x < y ? x : y) x < y x y x y " " (x > y ? x : y) x > y x y x y String[] args args public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        for(int x, y; (x = scn.nextInt()) != 0 | (y = scn.nextInt()) != 0;) {
            System.out.println((x < y ? x : y) + " " + (x > y ? x : y));
        }
    }
} public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        for(int x, y; (x = scn.nextInt()) != 0 | (y = scn.nextInt()) != 0;) {
            System.out.println((x < y ? x : y) + " " + (x > y ? x : y));
        }
    }
} Main
import java.util.*;

public class Main {
    private static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        for(int x, y; (x = scn.nextInt()) != 0 | (y = scn.nextInt()) != 0;) {
            System.out.println((x < y ? x : y) + " " + (x > y ? x : y));
        }
    }
}