import java.util.Scanner;

public class Main {

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

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

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

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

public class Main {

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