import java.io.*;

public class Main {

    public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] order =br.readLine().split(" ");
        int a = Integer.parseInt(order[0]);
        int b = Integer.parseInt(order[1]);
        int c = Integer.parseInt(order[2]);
        
        int n1=0,n2=0,n3=0;
        if(a<b){n1=b;n2=a;}else{n1=a;n2=b;}
        if(n1<c){n3=n1;n1=c;}else{n3=c;}
        if(n2<n3){System.out.println(n2+" "+n3+" "+n1);
        }else{System.out.println(n3+" "+n2+" "+n1);}
        
    }
    
} import java.io.*; io.* java public class Main {

    public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] order =br.readLine().split(" ");
        int a = Integer.parseInt(order[0]);
        int b = Integer.parseInt(order[1]);
        int c = Integer.parseInt(order[2]);
        
        int n1=0,n2=0,n3=0;
        if(a<b){n1=b;n2=a;}else{n1=a;n2=b;}
        if(n1<c){n3=n1;n1=c;}else{n3=c;}
        if(n2<n3){System.out.println(n2+" "+n3+" "+n1);
        }else{System.out.println(n3+" "+n2+" "+n1);}
        
    }
    
} Main public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] order =br.readLine().split(" ");
        int a = Integer.parseInt(order[0]);
        int b = Integer.parseInt(order[1]);
        int c = Integer.parseInt(order[2]);
        
        int n1=0,n2=0,n3=0;
        if(a<b){n1=b;n2=a;}else{n1=a;n2=b;}
        if(n1<c){n3=n1;n1=c;}else{n3=c;}
        if(n2<n3){System.out.println(n2+" "+n3+" "+n1);
        }else{System.out.println(n3+" "+n2+" "+n1);}
        
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] order =br.readLine().split(" ");
        int a = Integer.parseInt(order[0]);
        int b = Integer.parseInt(order[1]);
        int c = Integer.parseInt(order[2]);
        
        int n1=0,n2=0,n3=0;
        if(a<b){n1=b;n2=a;}else{n1=a;n2=b;}
        if(n1<c){n3=n1;n1=c;}else{n3=c;}
        if(n2<n3){System.out.println(n2+" "+n3+" "+n1);
        }else{System.out.println(n3+" "+n2+" "+n1);}
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] order =br.readLine().split(" "); order br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(order[0]); a Integer.parseInt(order[0]) Integer.parseInt Integer order[0] order 0 int b = Integer.parseInt(order[1]); b Integer.parseInt(order[1]) Integer.parseInt Integer order[1] order 1 int c = Integer.parseInt(order[2]); c Integer.parseInt(order[2]) Integer.parseInt Integer order[2] order 2 int n1=0 n1 0 n2=0 n2 0 n3=0; n3 0 if(a<b){n1=b;n2=a;}else{n1=a;n2=b;} a<b a b {n1=b;n2=a;} n1=b n1 b n2=a n2 a {n1=a;n2=b;} n1=a n1 a n2=b n2 b if(n1<c){n3=n1;n1=c;}else{n3=c;} n1<c n1 c {n3=n1;n1=c;} n3=n1 n3 n1 n1=c n1 c {n3=c;} n3=c n3 c if(n2<n3){System.out.println(n2+" "+n3+" "+n1);
        }else{System.out.println(n3+" "+n2+" "+n1);} n2<n3 n2 n3 {System.out.println(n2+" "+n3+" "+n1);
        } System.out.println(n2+" "+n3+" "+n1) System.out.println System.out System System.out n2+" "+n3+" "+n1 " " n3 n2+" "+n3+" "+n1 n2 " " n3 " " n1 {System.out.println(n3+" "+n2+" "+n1);} System.out.println(n3+" "+n2+" "+n1) System.out.println System.out System System.out n3+" "+n2+" "+n1 " " n2 n3+" "+n2+" "+n1 n3 " " n2 " " n1 String[] args args public class Main {

    public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] order =br.readLine().split(" ");
        int a = Integer.parseInt(order[0]);
        int b = Integer.parseInt(order[1]);
        int c = Integer.parseInt(order[2]);
        
        int n1=0,n2=0,n3=0;
        if(a<b){n1=b;n2=a;}else{n1=a;n2=b;}
        if(n1<c){n3=n1;n1=c;}else{n3=c;}
        if(n2<n3){System.out.println(n2+" "+n3+" "+n1);
        }else{System.out.println(n3+" "+n2+" "+n1);}
        
    }
    
} public class Main {

    public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] order =br.readLine().split(" ");
        int a = Integer.parseInt(order[0]);
        int b = Integer.parseInt(order[1]);
        int c = Integer.parseInt(order[2]);
        
        int n1=0,n2=0,n3=0;
        if(a<b){n1=b;n2=a;}else{n1=a;n2=b;}
        if(n1<c){n3=n1;n1=c;}else{n3=c;}
        if(n2<n3){System.out.println(n2+" "+n3+" "+n1);
        }else{System.out.println(n3+" "+n2+" "+n1);}
        
    }
    
} Main
import java.io.*;

public class Main {

    public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] order =br.readLine().split(" ");
        int a = Integer.parseInt(order[0]);
        int b = Integer.parseInt(order[1]);
        int c = Integer.parseInt(order[2]);
        
        int n1=0,n2=0,n3=0;
        if(a<b){n1=b;n2=a;}else{n1=a;n2=b;}
        if(n1<c){n3=n1;n1=c;}else{n3=c;}
        if(n2<n3){System.out.println(n2+" "+n3+" "+n1);
        }else{System.out.println(n3+" "+n2+" "+n1);}
        
    }
    
}