import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
   Scanner S = new Scanner(System.in);

      while(true){

      int x = S.nextInt();
      int y = S.nextInt();

      if (x == 0 && y ==0)break;

      if(x < y) System.out.printf("%d %d\n",x, y);

      else System.out.printf("%d %d\n",y, x);

      }
 }
}
 import java.util.Scanner; Scanner java.util class Main
 {
   public static void main(String[] args)
      {
   Scanner S = new Scanner(System.in);

      while(true){

      int x = S.nextInt();
      int y = S.nextInt();

      if (x == 0 && y ==0)break;

      if(x < y) System.out.printf("%d %d\n",x, y);

      else System.out.printf("%d %d\n",y, x);

      }
 }
} Main public static void main(String[] args)
      {
   Scanner S = new Scanner(System.in);

      while(true){

      int x = S.nextInt();
      int y = S.nextInt();

      if (x == 0 && y ==0)break;

      if(x < y) System.out.printf("%d %d\n",x, y);

      else System.out.printf("%d %d\n",y, x);

      }
 } main {
   Scanner S = new Scanner(System.in);

      while(true){

      int x = S.nextInt();
      int y = S.nextInt();

      if (x == 0 && y ==0)break;

      if(x < y) System.out.printf("%d %d\n",x, y);

      else System.out.printf("%d %d\n",y, x);

      }
 } Scanner S = new Scanner(System.in); S new Scanner(System.in) while(true){

      int x = S.nextInt();
      int y = S.nextInt();

      if (x == 0 && y ==0)break;

      if(x < y) System.out.printf("%d %d\n",x, y);

      else System.out.printf("%d %d\n",y, x);

      } true {

      int x = S.nextInt();
      int y = S.nextInt();

      if (x == 0 && y ==0)break;

      if(x < y) System.out.printf("%d %d\n",x, y);

      else System.out.printf("%d %d\n",y, x);

      } int x = S.nextInt(); x S.nextInt() S.nextInt S int y = S.nextInt(); y S.nextInt() S.nextInt S if (x == 0 && y ==0)break; x == 0 && y ==0 x == 0 x 0 y ==0 y 0 break; if(x < y) System.out.printf("%d %d\n",x, y);

      else System.out.printf("%d %d\n",y, x); x < y x y System.out.printf("%d %d\n",x, y) System.out.printf System.out System System.out "%d %d\n" x y System.out.printf("%d %d\n",y, x) System.out.printf System.out System System.out "%d %d\n" y x String[] args args
import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
   Scanner S = new Scanner(System.in);

      while(true){

      int x = S.nextInt();
      int y = S.nextInt();

      if (x == 0 && y ==0)break;

      if(x < y) System.out.printf("%d %d\n",x, y);

      else System.out.printf("%d %d\n",y, x);

      }
 }
}

