import java.util.Scanner;
class Main{
    int a,b,c;
    public void solve(){
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        if (a < b){
            if (b < c){
                System.out.println(a + " " + b + " " + c);
            }else if(a < c){
                    System.out.println(a + " " + c + " " + b);
            }else{
                System.out.println(c + " " + a + " " + b);
            }
        }else if(b < a){
            if(a < c){
                System.out.println(b + " " + a + " " + c);
            }else if(b < c){
                System.out.println(b + " " + c + " " + a);
            }else{
                System.out.println(c + " " + b + " " + a);
            }
        }
    }
    public static void main(String[] args){
        new Main().solve();     
    }
 
} import java.util.Scanner; Scanner java.util class Main{
    int a,b,c;
    public void solve(){
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        if (a < b){
            if (b < c){
                System.out.println(a + " " + b + " " + c);
            }else if(a < c){
                    System.out.println(a + " " + c + " " + b);
            }else{
                System.out.println(c + " " + a + " " + b);
            }
        }else if(b < a){
            if(a < c){
                System.out.println(b + " " + a + " " + c);
            }else if(b < c){
                System.out.println(b + " " + c + " " + a);
            }else{
                System.out.println(c + " " + b + " " + a);
            }
        }
    }
    public static void main(String[] args){
        new Main().solve();     
    }
 
} Main int a a b b c; c public void solve(){
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        if (a < b){
            if (b < c){
                System.out.println(a + " " + b + " " + c);
            }else if(a < c){
                    System.out.println(a + " " + c + " " + b);
            }else{
                System.out.println(c + " " + a + " " + b);
            }
        }else if(b < a){
            if(a < c){
                System.out.println(b + " " + a + " " + c);
            }else if(b < c){
                System.out.println(b + " " + c + " " + a);
            }else{
                System.out.println(c + " " + b + " " + a);
            }
        }
    } solve {
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        if (a < b){
            if (b < c){
                System.out.println(a + " " + b + " " + c);
            }else if(a < c){
                    System.out.println(a + " " + c + " " + b);
            }else{
                System.out.println(c + " " + a + " " + b);
            }
        }else if(b < a){
            if(a < c){
                System.out.println(b + " " + a + " " + c);
            }else if(b < c){
                System.out.println(b + " " + c + " " + a);
            }else{
                System.out.println(c + " " + b + " " + a);
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc c = sc.nextInt() c sc.nextInt() sc.nextInt sc if (a < b){
            if (b < c){
                System.out.println(a + " " + b + " " + c);
            }else if(a < c){
                    System.out.println(a + " " + c + " " + b);
            }else{
                System.out.println(c + " " + a + " " + b);
            }
        }else if(b < a){
            if(a < c){
                System.out.println(b + " " + a + " " + c);
            }else if(b < c){
                System.out.println(b + " " + c + " " + a);
            }else{
                System.out.println(c + " " + b + " " + a);
            }
        } a < b a b {
            if (b < c){
                System.out.println(a + " " + b + " " + c);
            }else if(a < c){
                    System.out.println(a + " " + c + " " + b);
            }else{
                System.out.println(c + " " + a + " " + b);
            }
        } if (b < c){
                System.out.println(a + " " + b + " " + c);
            }else if(a < c){
                    System.out.println(a + " " + c + " " + b);
            }else{
                System.out.println(c + " " + a + " " + b);
            } b < c b c {
                System.out.println(a + " " + 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 if(a < c){
                    System.out.println(a + " " + c + " " + b);
            }else{
                System.out.println(c + " " + a + " " + b);
            } a < c a c {
                    System.out.println(a + " " + c + " " + b);
            } System.out.println(a + " " + c + " " + b) System.out.println System.out System System.out a + " " + c + " " + b " " c a + " " + c + " " + b a " " c " " b {
                System.out.println(c + " " + 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 if(b < a){
            if(a < c){
                System.out.println(b + " " + a + " " + c);
            }else if(b < c){
                System.out.println(b + " " + c + " " + a);
            }else{
                System.out.println(c + " " + b + " " + a);
            }
        } b < a b a {
            if(a < c){
                System.out.println(b + " " + a + " " + c);
            }else if(b < c){
                System.out.println(b + " " + c + " " + a);
            }else{
                System.out.println(c + " " + b + " " + a);
            }
        } if(a < c){
                System.out.println(b + " " + a + " " + c);
            }else if(b < c){
                System.out.println(b + " " + c + " " + a);
            }else{
                System.out.println(c + " " + b + " " + a);
            } a < c a c {
                System.out.println(b + " " + 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 if(b < c){
                System.out.println(b + " " + c + " " + a);
            }else{
                System.out.println(c + " " + b + " " + a);
            } b < c b c {
                System.out.println(b + " " + c + " " + a);
            } System.out.println(b + " " + c + " " + a) System.out.println System.out System System.out b + " " + c + " " + a " " c b + " " + c + " " + a b " " c " " a {
                System.out.println(c + " " + b + " " + a);
            } System.out.println(c + " " + b + " " + a) System.out.println System.out System System.out c + " " + b + " " + a " " b c + " " + b + " " + a c " " b " " a public static void main(String[] args){
        new Main().solve();     
    } main {
        new Main().solve();     
    } new Main().solve() new Main().solve new Main() String[] args args
import java.util.Scanner;
class Main{
    int a,b,c;
    public void solve(){
        Scanner sc = new Scanner(System.in);
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        if (a < b){
            if (b < c){
                System.out.println(a + " " + b + " " + c);
            }else if(a < c){
                    System.out.println(a + " " + c + " " + b);
            }else{
                System.out.println(c + " " + a + " " + b);
            }
        }else if(b < a){
            if(a < c){
                System.out.println(b + " " + a + " " + c);
            }else if(b < c){
                System.out.println(b + " " + c + " " + a);
            }else{
                System.out.println(c + " " + b + " " + a);
            }
        }
    }
    public static void main(String[] args){
        new Main().solve();     
    }
 
}