import java.util.*;

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

class Main{
    public static void main(String[] args){
	final Scanner sc=new Scanner(System.in);
	int a=sc.nextInt();
	int b=sc.nextInt();
	int c=sc.nextInt();
	if(a<b){
	    if(b<c) System.out.println(a+" "+b+" "+c);
	    else{ System.out.println(a+" "+c+" "+b);
	    }
	}
	else if(b<c){
	    if(c<a) System.out.println(b+" "+c+" "+a);
	    else{ System.out.println(b+" "+a+" "+c);
	    }
	}
	else if(c<a){
	    if(a<b) System.out.println(c+" "+a+" "+b);
	    else{ System.out.println(c+" "+b+" "+a);
	    }
	}
    }
}