import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int inty = 0;
		int intWork = 0;

		try {
			//??\????????????
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while (true) {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			}
		}catch(IOException e1){
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int inty = 0;
		int intWork = 0;

		try {
			//??\????????????
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while (true) {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			}
		}catch(IOException e1){
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	}
} Main public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int inty = 0;
		int intWork = 0;

		try {
			//??\????????????
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while (true) {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			}
		}catch(IOException e1){
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	} main {

		//?????£?????????
		int intx = 0;
		int inty = 0;
		int intWork = 0;

		try {
			//??\????????????
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while (true) {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			}
		}catch(IOException e1){
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	} int intx = 0; intx 0 int inty = 0; inty 0 int intWork = 0; intWork 0 try {
			//??\????????????
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while (true) {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			}
		}catch(IOException e1){
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		} catch(IOException e1){
			System.out.println(e1);
		} IOException e1 {
			System.out.println(e1);
		} System.out.println(e1) System.out.println System.out System System.out e1 catch (NumberFormatException e2) {
			System.out.println(e2);
		} NumberFormatException e2 {
			System.out.println(e2);
		} System.out.println(e2) System.out.println System.out System System.out e2 {
			//??\????????????
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while (true) {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			}
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) while (true) {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			} true {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			} String strLine = br.readLine(); strLine br.readLine() br.readLine br if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				} strLine != null strLine null {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				} String[] strNumList = strLine.split(" ", 0); strNumList strLine.split(" ", 0) strLine.split strLine " " 0 intx = Integer.parseInt(strNumList[0]) intx Integer.parseInt(strNumList[0]) Integer.parseInt Integer strNumList[0] strNumList 0 inty = Integer.parseInt(strNumList[1]) inty Integer.parseInt(strNumList[1]) Integer.parseInt Integer strNumList[1] strNumList 1 if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					} intx != 0 || inty != 0 intx != 0 intx 0 inty != 0 inty 0 {
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					} if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						} intx > inty intx inty {
							intWork = intx;
							intx = inty;
							inty = intWork;
						} intWork = intx intWork intx intx = inty intx inty inty = intWork inty intWork System.out.println(intx + " " + inty) System.out.println System.out System System.out intx + " " + inty intx + " " + inty intx " " inty {
						break;
					} break; {
					break;
				} break; String[] args args public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int inty = 0;
		int intWork = 0;

		try {
			//??\????????????
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while (true) {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			}
		}catch(IOException e1){
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	}
} public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int inty = 0;
		int intWork = 0;

		try {
			//??\????????????
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while (true) {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			}
		}catch(IOException e1){
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) {

		//?????£?????????
		int intx = 0;
		int inty = 0;
		int intWork = 0;

		try {
			//??\????????????
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

			while (true) {
				String strLine = br.readLine();

				if (strLine != null) {
					String[] strNumList = strLine.split(" ", 0);

					intx = Integer.parseInt(strNumList[0]);
					inty = Integer.parseInt(strNumList[1]);

					if(intx != 0 || inty != 0){
						if (intx > inty) {
							intWork = intx;
							intx = inty;
							inty = intWork;
						}
						System.out.println(intx + " " + inty);
					}else{
						break;
					}
				}else {
					break;
				}
			}
		}catch(IOException e1){
			System.out.println(e1);
		}catch (NumberFormatException e2) {
			System.out.println(e2);
		}
	}
}