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