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