import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int value1,value2;
		int i = 0;

		while(true){
			value1 = scan.nextInt();
			value2 = scan.nextInt();

			if (value1 == 0 && value2 == 0)
				break;
			System.out.printf("%d %d\n", value1 < value2? value1 : value2, value1 > value2? value1 : value2);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int value1,value2;
		int i = 0;

		while(true){
			value1 = scan.nextInt();
			value2 = scan.nextInt();

			if (value1 == 0 && value2 == 0)
				break;
			System.out.printf("%d %d\n", value1 < value2? value1 : value2, value1 > value2? value1 : value2);
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int value1,value2;
		int i = 0;

		while(true){
			value1 = scan.nextInt();
			value2 = scan.nextInt();

			if (value1 == 0 && value2 == 0)
				break;
			System.out.printf("%d %d\n", value1 < value2? value1 : value2, value1 > value2? value1 : value2);
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int value1,value2;
		int i = 0;

		while(true){
			value1 = scan.nextInt();
			value2 = scan.nextInt();

			if (value1 == 0 && value2 == 0)
				break;
			System.out.printf("%d %d\n", value1 < value2? value1 : value2, value1 > value2? value1 : value2);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int value1 value1 value2; value2 int i = 0; i 0 while(true){
			value1 = scan.nextInt();
			value2 = scan.nextInt();

			if (value1 == 0 && value2 == 0)
				break;
			System.out.printf("%d %d\n", value1 < value2? value1 : value2, value1 > value2? value1 : value2);
		} true {
			value1 = scan.nextInt();
			value2 = scan.nextInt();

			if (value1 == 0 && value2 == 0)
				break;
			System.out.printf("%d %d\n", value1 < value2? value1 : value2, value1 > value2? value1 : value2);
		} value1 = scan.nextInt() value1 scan.nextInt() scan.nextInt scan value2 = scan.nextInt() value2 scan.nextInt() scan.nextInt scan if (value1 == 0 && value2 == 0)
				break; value1 == 0 && value2 == 0 value1 == 0 value1 0 value2 == 0 value2 0 break; System.out.printf("%d %d\n", value1 < value2? value1 : value2, value1 > value2? value1 : value2) System.out.printf System.out System System.out "%d %d\n" value1 < value2? value1 : value2 value1 < value2 value1 value2 value1 value2 value1 > value2? value1 : value2 value1 > value2 value1 value2 value1 value2 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int value1,value2;
		int i = 0;

		while(true){
			value1 = scan.nextInt();
			value2 = scan.nextInt();

			if (value1 == 0 && value2 == 0)
				break;
			System.out.printf("%d %d\n", value1 < value2? value1 : value2, value1 > value2? value1 : value2);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int value1,value2;
		int i = 0;

		while(true){
			value1 = scan.nextInt();
			value2 = scan.nextInt();

			if (value1 == 0 && value2 == 0)
				break;
			System.out.printf("%d %d\n", value1 < value2? value1 : value2, value1 > value2? value1 : value2);
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int value1,value2;
		int i = 0;

		while(true){
			value1 = scan.nextInt();
			value2 = scan.nextInt();

			if (value1 == 0 && value2 == 0)
				break;
			System.out.printf("%d %d\n", value1 < value2? value1 : value2, value1 > value2? value1 : value2);
		}
	}
}