import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<String> list = new ArrayList<String>();
        while(true) {
	        String line = br.readLine();
	        String[] ary = line.split(" ");
	        if(new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) ) 
	        	break;
	        if(new Integer(ary[0]) >= new Integer(ary[1])) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        }else {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        }
	        list.add("\n");
        }
        for(String s: list) {
	        System.out.print(s);
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<String> list = new ArrayList<String>();
        while(true) {
	        String line = br.readLine();
	        String[] ary = line.split(" ");
	        if(new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) ) 
	        	break;
	        if(new Integer(ary[0]) >= new Integer(ary[1])) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        }else {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        }
	        list.add("\n");
        }
        for(String s: list) {
	        System.out.print(s);
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<String> list = new ArrayList<String>();
        while(true) {
	        String line = br.readLine();
	        String[] ary = line.split(" ");
	        if(new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) ) 
	        	break;
	        if(new Integer(ary[0]) >= new Integer(ary[1])) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        }else {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        }
	        list.add("\n");
        }
        for(String s: list) {
	        System.out.print(s);
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<String> list = new ArrayList<String>();
        while(true) {
	        String line = br.readLine();
	        String[] ary = line.split(" ");
	        if(new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) ) 
	        	break;
	        if(new Integer(ary[0]) >= new Integer(ary[1])) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        }else {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        }
	        list.add("\n");
        }
        for(String s: list) {
	        System.out.print(s);
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<String> list = new ArrayList<String>(); list new ArrayList<String>() while(true) {
	        String line = br.readLine();
	        String[] ary = line.split(" ");
	        if(new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) ) 
	        	break;
	        if(new Integer(ary[0]) >= new Integer(ary[1])) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        }else {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        }
	        list.add("\n");
        } true {
	        String line = br.readLine();
	        String[] ary = line.split(" ");
	        if(new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) ) 
	        	break;
	        if(new Integer(ary[0]) >= new Integer(ary[1])) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        }else {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        }
	        list.add("\n");
        } String line = br.readLine(); line br.readLine() br.readLine br String[] ary = line.split(" "); ary line.split(" ") line.split line " " if(new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) ) 
	        	break; new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) new Integer(ary[0]).equals(0) new Integer(ary[0]).equals new Integer(ary[0]) 0 new Integer(ary[1]).equals(0) new Integer(ary[1]).equals new Integer(ary[1]) 0 break; if(new Integer(ary[0]) >= new Integer(ary[1])) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        }else {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        } new Integer(ary[0]) >= new Integer(ary[1]) new Integer(ary[0]) new Integer(ary[1]) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        } list.add(ary[1]) list.add list ary[1] ary 1 list.add(" ") list.add list " " list.add(ary[0]) list.add list ary[0] ary 0 {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        } list.add(ary[0]) list.add list ary[0] ary 0 list.add(" ") list.add list " " list.add(ary[1]) list.add list ary[1] ary 1 list.add("\n") list.add list "\n" for(String s: list) {
	        System.out.print(s);
        } String s list {
	        System.out.print(s);
        } {
	        System.out.print(s);
        } System.out.print(s) System.out.print System.out System System.out s String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<String> list = new ArrayList<String>();
        while(true) {
	        String line = br.readLine();
	        String[] ary = line.split(" ");
	        if(new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) ) 
	        	break;
	        if(new Integer(ary[0]) >= new Integer(ary[1])) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        }else {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        }
	        list.add("\n");
        }
        for(String s: list) {
	        System.out.print(s);
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<String> list = new ArrayList<String>();
        while(true) {
	        String line = br.readLine();
	        String[] ary = line.split(" ");
	        if(new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) ) 
	        	break;
	        if(new Integer(ary[0]) >= new Integer(ary[1])) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        }else {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        }
	        list.add("\n");
        }
        for(String s: list) {
	        System.out.print(s);
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        List<String> list = new ArrayList<String>();
        while(true) {
	        String line = br.readLine();
	        String[] ary = line.split(" ");
	        if(new Integer(ary[0]).equals(0) && new Integer(ary[1]).equals(0) ) 
	        	break;
	        if(new Integer(ary[0]) >= new Integer(ary[1])) {
		        list.add(ary[1]);
		        list.add(" ");
		        list.add(ary[0]);
	        }else {
		        list.add(ary[0]);
		        list.add(" ");
		        list.add(ary[1]);
	        }
	        list.add("\n");
        }
        for(String s: list) {
	        System.out.print(s);
        }
    }
}