import java.util.Scanner;
class Main{
  public static void main(String[] args){
  Scanner scanner = new Scanner(System.in);
  
  for(int i = 1; ; i++){
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int numbers[] = {x, y};
      int temp;
      if(x == 0 && y == 0){
          break;
          }
      for(int j = 0; j < numbers.length - 1; j++){
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      }
      
    }
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
  Scanner scanner = new Scanner(System.in);
  
  for(int i = 1; ; i++){
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int numbers[] = {x, y};
      int temp;
      if(x == 0 && y == 0){
          break;
          }
      for(int j = 0; j < numbers.length - 1; j++){
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      }
      
    }
  }
} Main public static void main(String[] args){
  Scanner scanner = new Scanner(System.in);
  
  for(int i = 1; ; i++){
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int numbers[] = {x, y};
      int temp;
      if(x == 0 && y == 0){
          break;
          }
      for(int j = 0; j < numbers.length - 1; j++){
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      }
      
    }
  } main {
  Scanner scanner = new Scanner(System.in);
  
  for(int i = 1; ; i++){
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int numbers[] = {x, y};
      int temp;
      if(x == 0 && y == 0){
          break;
          }
      for(int j = 0; j < numbers.length - 1; j++){
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      }
      
    }
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) for(int i = 1; ; i++){
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int numbers[] = {x, y};
      int temp;
      if(x == 0 && y == 0){
          break;
          }
      for(int j = 0; j < numbers.length - 1; j++){
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      }
      
    } int i = 1; int i = 1; i 1 i++ i++ i {
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int numbers[] = {x, y};
      int temp;
      if(x == 0 && y == 0){
          break;
          }
      for(int j = 0; j < numbers.length - 1; j++){
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      }
      
    } {
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int numbers[] = {x, y};
      int temp;
      if(x == 0 && y == 0){
          break;
          }
      for(int j = 0; j < numbers.length - 1; j++){
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      }
      
    } int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int y = scanner.nextInt(); y scanner.nextInt() scanner.nextInt scanner int numbers[] = {x, y}; numbers {x, y} x y int temp; temp if(x == 0 && y == 0){
          break;
          } x == 0 && y == 0 x == 0 x 0 y == 0 y 0 {
          break;
          } break; for(int j = 0; j < numbers.length - 1; j++){
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      } int j = 0; int j = 0; j 0 j < numbers.length - 1 j numbers.length - 1 numbers.length numbers numbers.length 1 j++ j++ j {
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      } {
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      } if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          } numbers[j] > numbers[j + 1] numbers[j] numbers j numbers[j + 1] numbers j + 1 j 1 {
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          } temp = numbers[j] temp numbers[j] numbers j numbers[j] = numbers[j + 1] numbers[j] numbers j numbers[j + 1] numbers j + 1 j 1 numbers[j + 1] = temp numbers[j + 1] numbers j + 1 j 1 temp System.out.println(numbers[0] + " " + numbers[1]) System.out.println System.out System System.out numbers[0] + " " + numbers[1] numbers[0] + " " + numbers[1] numbers[0] numbers 0 " " numbers[1] numbers 1 String[] args args
import java.util.Scanner;
class Main{
  public static void main(String[] args){
  Scanner scanner = new Scanner(System.in);
  
  for(int i = 1; ; i++){
      int x = scanner.nextInt();
      int y = scanner.nextInt();
      int numbers[] = {x, y};
      int temp;
      if(x == 0 && y == 0){
          break;
          }
      for(int j = 0; j < numbers.length - 1; j++){
          
          if(numbers[j] > numbers[j + 1]){
              temp = numbers[j];
              numbers[j] = numbers[j + 1];
              numbers[j + 1] = temp;
          }
          System.out.println(numbers[0] + " " + numbers[1]);
      }
      
    }
  }
}