import java.util.Scanner;

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

class Main{
    public static void main(String[] args){
        int a,b,c;
        //?¨??????\??????????????????????????§????????????
    	Scanner scanner = new Scanner(System.in);
    	//??\????????????int??????????????????
    	a = scanner.nextInt();
    	b = scanner.nextInt();
    	c = scanner.nextInt();
    	//a????????§??????
    	if(a > b && a > c){
    		if(b > c){
    			System.out.println(c+" "+b+" "+a);
    		}
    		else{
    			System.out.println(b+" "+c+" "+a);
    		}
    	}
    	//b????????§??????
    	else if(b > a && b >c){
    		if(a > c){
    			System.out.println(c+" "+a+" "+b);
    		}
    		else{
    			System.out.println(a+" "+c+" "+b);
    		}
    	}
    	//c????????§??????
    	else{
    		if(a > b){
    			System.out.println(b+" "+a+" "+c);
    		}
    		else{
    			System.out.println(a+" "+b+" "+c);
    		}
    	}
    }
}