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

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr;
    while ((readStr = reader.readLine()) != null) {
      int[] list = new int[2];
      list[0] = Integer.parseInt(readStr.split(" ")[0]);
      list[1] = Integer.parseInt(readStr.split(" ")[1]);
      
      if (list[0] == 0 && list[1] == 0) break;
      
      ascendingSort(list);

      System.out.println(Arrays.toString(list)
              .replaceAll("\\[|\\]|,", ""));
    }
  }

  public static void ascendingSort(int[] array) {
    for (int i = 0; i < array.length; i++) {
      for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      }
    }
  }

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

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr;
    while ((readStr = reader.readLine()) != null) {
      int[] list = new int[2];
      list[0] = Integer.parseInt(readStr.split(" ")[0]);
      list[1] = Integer.parseInt(readStr.split(" ")[1]);
      
      if (list[0] == 0 && list[1] == 0) break;
      
      ascendingSort(list);

      System.out.println(Arrays.toString(list)
              .replaceAll("\\[|\\]|,", ""));
    }
  }

  public static void ascendingSort(int[] array) {
    for (int i = 0; i < array.length; i++) {
      for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      }
    }
  }

} Main public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr;
    while ((readStr = reader.readLine()) != null) {
      int[] list = new int[2];
      list[0] = Integer.parseInt(readStr.split(" ")[0]);
      list[1] = Integer.parseInt(readStr.split(" ")[1]);
      
      if (list[0] == 0 && list[1] == 0) break;
      
      ascendingSort(list);

      System.out.println(Arrays.toString(list)
              .replaceAll("\\[|\\]|,", ""));
    }
  } main {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr;
    while ((readStr = reader.readLine()) != null) {
      int[] list = new int[2];
      list[0] = Integer.parseInt(readStr.split(" ")[0]);
      list[1] = Integer.parseInt(readStr.split(" ")[1]);
      
      if (list[0] == 0 && list[1] == 0) break;
      
      ascendingSort(list);

      System.out.println(Arrays.toString(list)
              .replaceAll("\\[|\\]|,", ""));
    }
  } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String readStr; readStr while ((readStr = reader.readLine()) != null) {
      int[] list = new int[2];
      list[0] = Integer.parseInt(readStr.split(" ")[0]);
      list[1] = Integer.parseInt(readStr.split(" ")[1]);
      
      if (list[0] == 0 && list[1] == 0) break;
      
      ascendingSort(list);

      System.out.println(Arrays.toString(list)
              .replaceAll("\\[|\\]|,", ""));
    } (readStr = reader.readLine()) != null (readStr = reader.readLine()) readStr reader.readLine() reader.readLine reader null {
      int[] list = new int[2];
      list[0] = Integer.parseInt(readStr.split(" ")[0]);
      list[1] = Integer.parseInt(readStr.split(" ")[1]);
      
      if (list[0] == 0 && list[1] == 0) break;
      
      ascendingSort(list);

      System.out.println(Arrays.toString(list)
              .replaceAll("\\[|\\]|,", ""));
    } int[] list = new int[2]; list new int[2] 2 list[0] = Integer.parseInt(readStr.split(" ")[0]) list[0] list 0 Integer.parseInt(readStr.split(" ")[0]) Integer.parseInt Integer readStr.split(" ")[0] readStr.split(" ") readStr.split readStr " " 0 list[1] = Integer.parseInt(readStr.split(" ")[1]) list[1] list 1 Integer.parseInt(readStr.split(" ")[1]) Integer.parseInt Integer readStr.split(" ")[1] readStr.split(" ") readStr.split readStr " " 1 if (list[0] == 0 && list[1] == 0) break; list[0] == 0 && list[1] == 0 list[0] == 0 list[0] list 0 0 list[1] == 0 list[1] list 1 0 break; ascendingSort(list) ascendingSort list System.out.println(Arrays.toString(list)
              .replaceAll("\\[|\\]|,", "")) System.out.println System.out System System.out Arrays.toString(list)
              .replaceAll("\\[|\\]|,", "") Arrays.toString(list)
              .replaceAll Arrays.toString(list) Arrays.toString Arrays list "\\[|\\]|," "" String[] args args public static void ascendingSort(int[] array) {
    for (int i = 0; i < array.length; i++) {
      for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      }
    }
  } ascendingSort {
    for (int i = 0; i < array.length; i++) {
      for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      }
    }
  } for (int i = 0; i < array.length; i++) {
      for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      }
    } int i = 0; int i = 0; i 0 i < array.length i array.length array array.length i++ i++ i {
      for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      }
    } {
      for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      }
    } for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      } int j = 0; int j = 0; j 0 j < array.length - 1 - i j array.length - 1 - i array.length - 1 - i array.length array array.length 1 i j++ j++ j {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      } {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      } if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        } array[j] > array[j + 1] array[j] array j array[j + 1] array j + 1 j 1 {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        } int tmp = array[j]; tmp array[j] array j array[j] = array[j + 1] array[j] array j array[j + 1] array j + 1 j 1 array[j + 1] = tmp array[j + 1] array j + 1 j 1 tmp int[] array array public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr;
    while ((readStr = reader.readLine()) != null) {
      int[] list = new int[2];
      list[0] = Integer.parseInt(readStr.split(" ")[0]);
      list[1] = Integer.parseInt(readStr.split(" ")[1]);
      
      if (list[0] == 0 && list[1] == 0) break;
      
      ascendingSort(list);

      System.out.println(Arrays.toString(list)
              .replaceAll("\\[|\\]|,", ""));
    }
  }

  public static void ascendingSort(int[] array) {
    for (int i = 0; i < array.length; i++) {
      for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      }
    }
  }

} public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr;
    while ((readStr = reader.readLine()) != null) {
      int[] list = new int[2];
      list[0] = Integer.parseInt(readStr.split(" ")[0]);
      list[1] = Integer.parseInt(readStr.split(" ")[1]);
      
      if (list[0] == 0 && list[1] == 0) break;
      
      ascendingSort(list);

      System.out.println(Arrays.toString(list)
              .replaceAll("\\[|\\]|,", ""));
    }
  }

  public static void ascendingSort(int[] array) {
    for (int i = 0; i < array.length; i++) {
      for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      }
    }
  }

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String readStr;
    while ((readStr = reader.readLine()) != null) {
      int[] list = new int[2];
      list[0] = Integer.parseInt(readStr.split(" ")[0]);
      list[1] = Integer.parseInt(readStr.split(" ")[1]);
      
      if (list[0] == 0 && list[1] == 0) break;
      
      ascendingSort(list);

      System.out.println(Arrays.toString(list)
              .replaceAll("\\[|\\]|,", ""));
    }
  }

  public static void ascendingSort(int[] array) {
    for (int i = 0; i < array.length; i++) {
      for (int j = 0; j < array.length - 1 - i; j++) {
        if (array[j] > array[j + 1]) {
          int tmp = array[j];
          array[j] = array[j + 1];
          array[j + 1] = tmp;
        }
      }
    }
  }

}