import java.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String[] arange=null;
     try{ 
      arange = in.readLine().split(" ", 0);
     }catch (Exception e){
     }
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<=b&&a<=c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<=a&&b<=c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else{
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
} import java.io.*; io.* java public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String[] arange=null;
     try{ 
      arange = in.readLine().split(" ", 0);
     }catch (Exception e){
     }
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<=b&&a<=c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<=a&&b<=c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else{
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
} Main public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String[] arange=null;
     try{ 
      arange = in.readLine().split(" ", 0);
     }catch (Exception e){
     }
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<=b&&a<=c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<=a&&b<=c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else{
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   } main {
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String[] arange=null;
     try{ 
      arange = in.readLine().split(" ", 0);
     }catch (Exception e){
     }
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<=b&&a<=c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<=a&&b<=c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else{
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   } BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int a a b b c; c String[] arange=null; arange null try{ 
      arange = in.readLine().split(" ", 0);
     }catch (Exception e){
     } catch (Exception e){
     } Exception e {
     } { 
      arange = in.readLine().split(" ", 0);
     } arange = in.readLine().split(" ", 0) arange in.readLine().split(" ", 0) in.readLine().split in.readLine() in.readLine in " " 0 a = Integer.parseInt(arange[0]) a Integer.parseInt(arange[0]) Integer.parseInt Integer arange[0] arange 0 b = Integer.parseInt(arange[1]) b Integer.parseInt(arange[1]) Integer.parseInt Integer arange[1] arange 1 c = Integer.parseInt(arange[2]) c Integer.parseInt(arange[2]) Integer.parseInt Integer arange[2] arange 2 if(a<=b&&a<=c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<=a&&b<=c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else{
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      } a<=b&&a<=c a<=b a b a<=c a c {
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      } if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b); b<c b c System.out.println(a+" "+b+" "+c) System.out.println System.out System System.out a+" "+b+" "+c " " b a+" "+b+" "+c a " " b " " c System.out.println(a+" "+c+" "+b) System.out.println System.out System System.out a+" "+c+" "+b " " c a+" "+c+" "+b a " " c " " b if(b<=a&&b<=c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else{
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      } b<=a&&b<=c b<=a b a b<=c b c {
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      } if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a); a<c a c System.out.println(b+" "+a+" "+c) System.out.println System.out System System.out b+" "+a+" "+c " " a b+" "+a+" "+c b " " a " " c System.out.println(b+" "+c+" "+a) System.out.println System.out System System.out b+" "+c+" "+a " " c b+" "+c+" "+a b " " c " " a {
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      } if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a); a<b a b System.out.println(c+" "+a+" "+b) System.out.println System.out System System.out c+" "+a+" "+b " " a c+" "+a+" "+b c " " a " " b System.out.println(c+" "+b+" "+a) System.out.println System.out System System.out c+" "+b+" "+a " " b c+" "+b+" "+a c " " b " " a String [] args args public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String[] arange=null;
     try{ 
      arange = in.readLine().split(" ", 0);
     }catch (Exception e){
     }
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<=b&&a<=c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<=a&&b<=c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else{
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
} public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String[] arange=null;
     try{ 
      arange = in.readLine().split(" ", 0);
     }catch (Exception e){
     }
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<=b&&a<=c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<=a&&b<=c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else{
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
} Main
import java.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String[] arange=null;
     try{ 
      arange = in.readLine().split(" ", 0);
     }catch (Exception e){
     }
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<=b&&a<=c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<=a&&b<=c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else{
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}
