import java.util.Scanner;
public class Main{
    public static void main(String args[]){
        int n;
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
 
        if(a<b){
            n = a;
            a = b;
            b = n;
          }
        
          if(b<c){
            n = b;
            b = c;
            c = n;
          }
        
          if(a<b){
            n = a;
            a = b;
            b = n;
          }

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

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

          System.out.println(""+c+" "+b+" "+a);
    } main {
        int n;
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
 
        if(a<b){
            n = a;
            a = b;
            b = n;
          }
        
          if(b<c){
            n = b;
            b = c;
            c = n;
          }
        
          if(a<b){
            n = a;
            a = b;
            b = n;
          }

          System.out.println(""+c+" "+b+" "+a);
    } int n; n Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan if(a<b){
            n = a;
            a = b;
            b = n;
          } a<b a b {
            n = a;
            a = b;
            b = n;
          } n = a n a a = b a b b = n b n if(b<c){
            n = b;
            b = c;
            c = n;
          } b<c b c {
            n = b;
            b = c;
            c = n;
          } n = b n b b = c b c c = n c n if(a<b){
            n = a;
            a = b;
            b = n;
          } a<b a b {
            n = a;
            a = b;
            b = n;
          } n = a n a a = b a b b = n b n 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[]){
        int n;
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
 
        if(a<b){
            n = a;
            a = b;
            b = n;
          }
        
          if(b<c){
            n = b;
            b = c;
            c = n;
          }
        
          if(a<b){
            n = a;
            a = b;
            b = n;
          }

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

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

          System.out.println(""+c+" "+b+" "+a);
    }
}
