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

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = "";
		ArrayList<String> numList = new ArrayList<String>();
		while (true) {
			strNum = br.readLine();
			if ("0 0".equals(strNum)) {
				break;
			}
			String[] numArrays = strNum.split(" ");
			if (Integer.parseInt(numArrays[0]) > Integer.parseInt(numArrays[1])) {
				numList.add(numArrays[1] + " " + numArrays[0]);
			} else {
				numList.add(numArrays[0] + " " + numArrays[1]);
			}
		}
		for (int i = 0; i < numList.size(); i++) {
			System.out.println(numList.get(i));
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = "";
		ArrayList<String> numList = new ArrayList<String>();
		while (true) {
			strNum = br.readLine();
			if ("0 0".equals(strNum)) {
				break;
			}
			String[] numArrays = strNum.split(" ");
			if (Integer.parseInt(numArrays[0]) > Integer.parseInt(numArrays[1])) {
				numList.add(numArrays[1] + " " + numArrays[0]);
			} else {
				numList.add(numArrays[0] + " " + numArrays[1]);
			}
		}
		for (int i = 0; i < numList.size(); i++) {
			System.out.println(numList.get(i));
		}
	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = "";
		ArrayList<String> numList = new ArrayList<String>();
		while (true) {
			strNum = br.readLine();
			if ("0 0".equals(strNum)) {
				break;
			}
			String[] numArrays = strNum.split(" ");
			if (Integer.parseInt(numArrays[0]) > Integer.parseInt(numArrays[1])) {
				numList.add(numArrays[1] + " " + numArrays[0]);
			} else {
				numList.add(numArrays[0] + " " + numArrays[1]);
			}
		}
		for (int i = 0; i < numList.size(); i++) {
			System.out.println(numList.get(i));
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = "";
		ArrayList<String> numList = new ArrayList<String>();
		while (true) {
			strNum = br.readLine();
			if ("0 0".equals(strNum)) {
				break;
			}
			String[] numArrays = strNum.split(" ");
			if (Integer.parseInt(numArrays[0]) > Integer.parseInt(numArrays[1])) {
				numList.add(numArrays[1] + " " + numArrays[0]);
			} else {
				numList.add(numArrays[0] + " " + numArrays[1]);
			}
		}
		for (int i = 0; i < numList.size(); i++) {
			System.out.println(numList.get(i));
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String strNum = ""; strNum "" ArrayList<String> numList = new ArrayList<String>(); numList new ArrayList<String>() while (true) {
			strNum = br.readLine();
			if ("0 0".equals(strNum)) {
				break;
			}
			String[] numArrays = strNum.split(" ");
			if (Integer.parseInt(numArrays[0]) > Integer.parseInt(numArrays[1])) {
				numList.add(numArrays[1] + " " + numArrays[0]);
			} else {
				numList.add(numArrays[0] + " " + numArrays[1]);
			}
		} true {
			strNum = br.readLine();
			if ("0 0".equals(strNum)) {
				break;
			}
			String[] numArrays = strNum.split(" ");
			if (Integer.parseInt(numArrays[0]) > Integer.parseInt(numArrays[1])) {
				numList.add(numArrays[1] + " " + numArrays[0]);
			} else {
				numList.add(numArrays[0] + " " + numArrays[1]);
			}
		} strNum = br.readLine() strNum br.readLine() br.readLine br if ("0 0".equals(strNum)) {
				break;
			} "0 0".equals(strNum) "0 0".equals "0 0" strNum {
				break;
			} break; String[] numArrays = strNum.split(" "); numArrays strNum.split(" ") strNum.split strNum " " if (Integer.parseInt(numArrays[0]) > Integer.parseInt(numArrays[1])) {
				numList.add(numArrays[1] + " " + numArrays[0]);
			} else {
				numList.add(numArrays[0] + " " + numArrays[1]);
			} Integer.parseInt(numArrays[0]) > Integer.parseInt(numArrays[1]) Integer.parseInt(numArrays[0]) Integer.parseInt Integer numArrays[0] numArrays 0 Integer.parseInt(numArrays[1]) Integer.parseInt Integer numArrays[1] numArrays 1 {
				numList.add(numArrays[1] + " " + numArrays[0]);
			} numList.add(numArrays[1] + " " + numArrays[0]) numList.add numList numArrays[1] + " " + numArrays[0] numArrays[1] + " " + numArrays[0] numArrays[1] numArrays 1 " " numArrays[0] numArrays 0 {
				numList.add(numArrays[0] + " " + numArrays[1]);
			} numList.add(numArrays[0] + " " + numArrays[1]) numList.add numList numArrays[0] + " " + numArrays[1] numArrays[0] + " " + numArrays[1] numArrays[0] numArrays 0 " " numArrays[1] numArrays 1 for (int i = 0; i < numList.size(); i++) {
			System.out.println(numList.get(i));
		} int i = 0; int i = 0; i 0 i < numList.size() i numList.size() numList.size numList i++ i++ i {
			System.out.println(numList.get(i));
		} {
			System.out.println(numList.get(i));
		} System.out.println(numList.get(i)) System.out.println System.out System System.out numList.get(i) numList.get numList i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;

class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strNum = "";
		ArrayList<String> numList = new ArrayList<String>();
		while (true) {
			strNum = br.readLine();
			if ("0 0".equals(strNum)) {
				break;
			}
			String[] numArrays = strNum.split(" ");
			if (Integer.parseInt(numArrays[0]) > Integer.parseInt(numArrays[1])) {
				numList.add(numArrays[1] + " " + numArrays[0]);
			} else {
				numList.add(numArrays[0] + " " + numArrays[1]);
			}
		}
		for (int i = 0; i < numList.size(); i++) {
			System.out.println(numList.get(i));
		}
	}

}