import java.util.Scanner;

class Main {

   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int work;
      if(c < a) {
         work = a;
         a = c;
         c = work;
      }
      if(c < b) {
         work = b;
         b = c;
         c = work;
      }
      if(b < a) {
         work = a;
         a = b;
         b = work;
      }
      System.out.println(a + " " + b + " " + c);
   }
} import java.util.Scanner; Scanner java.util class Main {

   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int work;
      if(c < a) {
         work = a;
         a = c;
         c = work;
      }
      if(c < b) {
         work = b;
         b = c;
         c = work;
      }
      if(b < a) {
         work = a;
         a = b;
         b = work;
      }
      System.out.println(a + " " + b + " " + c);
   }
} Main public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int work;
      if(c < a) {
         work = a;
         a = c;
         c = work;
      }
      if(c < b) {
         work = b;
         b = c;
         c = work;
      }
      if(b < a) {
         work = a;
         a = b;
         b = work;
      }
      System.out.println(a + " " + b + " " + c);
   } main {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int work;
      if(c < a) {
         work = a;
         a = c;
         c = work;
      }
      if(c < b) {
         work = b;
         b = c;
         c = work;
      }
      if(b < a) {
         work = a;
         a = b;
         b = work;
      }
      System.out.println(a + " " + b + " " + c);
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int work; work if(c < a) {
         work = a;
         a = c;
         c = work;
      } c < a c a {
         work = a;
         a = c;
         c = work;
      } work = a work a a = c a c c = work c work if(c < b) {
         work = b;
         b = c;
         c = work;
      } c < b c b {
         work = b;
         b = c;
         c = work;
      } work = b work b b = c b c c = work c work if(b < a) {
         work = a;
         a = b;
         b = work;
      } b < a b a {
         work = a;
         a = b;
         b = work;
      } work = a work a a = b a b b = work b work System.out.println(a + " " + b + " " + c) System.out.println System.out System System.out a + " " + b + " " + c " " b a + " " + b + " " + c a " " b " " c String[] args args
import java.util.Scanner;

class Main {

   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();
      int work;
      if(c < a) {
         work = a;
         a = c;
         c = work;
      }
      if(c < b) {
         work = b;
         b = c;
         c = work;
      }
      if(b < a) {
         work = a;
         a = b;
         b = work;
      }
      System.out.println(a + " " + b + " " + c);
   }
}