import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b,c,v;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	c= Integer.parseInt(strlAry[2]);

	if(a<b){
		if(b<c){
			System.out.println(a+" "+b+" "+c);
		}
		else{
			System.out.println(c+" "+a+" "+b);
		}
	}
	else if(b<c){
		if(c<a){
			System.out.println(b+" "+c+" "+a);
		}
		else{
			System.out.println(b+" "+a+" "+c);
		}
	}
	else{
		if(a<c){
			System.out.println(a+" "+c+" "+b);
		}
		else{
			System.out.println(c+" "+b+" "+a);
		}
	}
	}
} import java.io.*; io.* java public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b,c,v;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	c= Integer.parseInt(strlAry[2]);

	if(a<b){
		if(b<c){
			System.out.println(a+" "+b+" "+c);
		}
		else{
			System.out.println(c+" "+a+" "+b);
		}
	}
	else if(b<c){
		if(c<a){
			System.out.println(b+" "+c+" "+a);
		}
		else{
			System.out.println(b+" "+a+" "+c);
		}
	}
	else{
		if(a<c){
			System.out.println(a+" "+c+" "+b);
		}
		else{
			System.out.println(c+" "+b+" "+a);
		}
	}
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b,c,v;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	c= Integer.parseInt(strlAry[2]);

	if(a<b){
		if(b<c){
			System.out.println(a+" "+b+" "+c);
		}
		else{
			System.out.println(c+" "+a+" "+b);
		}
	}
	else if(b<c){
		if(c<a){
			System.out.println(b+" "+c+" "+a);
		}
		else{
			System.out.println(b+" "+a+" "+c);
		}
	}
	else{
		if(a<c){
			System.out.println(a+" "+c+" "+b);
		}
		else{
			System.out.println(c+" "+b+" "+a);
		}
	}
	} main {
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b,c,v;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	c= Integer.parseInt(strlAry[2]);

	if(a<b){
		if(b<c){
			System.out.println(a+" "+b+" "+c);
		}
		else{
			System.out.println(c+" "+a+" "+b);
		}
	}
	else if(b<c){
		if(c<a){
			System.out.println(b+" "+c+" "+a);
		}
		else{
			System.out.println(b+" "+a+" "+c);
		}
	}
	else{
		if(a<c){
			System.out.println(a+" "+c+" "+b);
		}
		else{
			System.out.println(c+" "+b+" "+a);
		}
	}
	} BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) int a a b b c c v; v String s = buf.readLine(); s buf.readLine() buf.readLine buf String[] strlAry =s.split(" "); strlAry s.split(" ") s.split s " " for(int i=0;i<strlAry.length;i++){
	} int i=0; int i=0; i 0 i<strlAry.length i strlAry.length strlAry strlAry.length i++ i++ i {
	} {
	} a= Integer.parseInt(strlAry[0]) a Integer.parseInt(strlAry[0]) Integer.parseInt Integer strlAry[0] strlAry 0 b= Integer.parseInt(strlAry[1]) b Integer.parseInt(strlAry[1]) Integer.parseInt Integer strlAry[1] strlAry 1 c= Integer.parseInt(strlAry[2]) c Integer.parseInt(strlAry[2]) Integer.parseInt Integer strlAry[2] strlAry 2 if(a<b){
		if(b<c){
			System.out.println(a+" "+b+" "+c);
		}
		else{
			System.out.println(c+" "+a+" "+b);
		}
	}
	else if(b<c){
		if(c<a){
			System.out.println(b+" "+c+" "+a);
		}
		else{
			System.out.println(b+" "+a+" "+c);
		}
	}
	else{
		if(a<c){
			System.out.println(a+" "+c+" "+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(c+" "+a+" "+b);
		}
	} if(b<c){
			System.out.println(a+" "+b+" "+c);
		}
		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 {
			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(c<a){
			System.out.println(b+" "+c+" "+a);
		}
		else{
			System.out.println(b+" "+a+" "+c);
		}
	}
	else{
		if(a<c){
			System.out.println(a+" "+c+" "+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(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(a<c){
			System.out.println(a+" "+c+" "+b);
		}
		else{
			System.out.println(c+" "+b+" "+a);
		}
	} if(a<c){
			System.out.println(a+" "+c+" "+b);
		}
		else{
			System.out.println(c+" "+b+" "+a);
		} 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+" "+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 public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b,c,v;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	c= Integer.parseInt(strlAry[2]);

	if(a<b){
		if(b<c){
			System.out.println(a+" "+b+" "+c);
		}
		else{
			System.out.println(c+" "+a+" "+b);
		}
	}
	else if(b<c){
		if(c<a){
			System.out.println(b+" "+c+" "+a);
		}
		else{
			System.out.println(b+" "+a+" "+c);
		}
	}
	else{
		if(a<c){
			System.out.println(a+" "+c+" "+b);
		}
		else{
			System.out.println(c+" "+b+" "+a);
		}
	}
	}
} public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b,c,v;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	c= Integer.parseInt(strlAry[2]);

	if(a<b){
		if(b<c){
			System.out.println(a+" "+b+" "+c);
		}
		else{
			System.out.println(c+" "+a+" "+b);
		}
	}
	else if(b<c){
		if(c<a){
			System.out.println(b+" "+c+" "+a);
		}
		else{
			System.out.println(b+" "+a+" "+c);
		}
	}
	else{
		if(a<c){
			System.out.println(a+" "+c+" "+b);
		}
		else{
			System.out.println(c+" "+b+" "+a);
		}
	}
	}
} Main
import java.io.*;

public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	int a,b,c,v;
	String s = buf.readLine();
	String[] strlAry =s.split(" ");
	for(int i=0;i<strlAry.length;i++){
	}
	a= Integer.parseInt(strlAry[0]);
	b= Integer.parseInt(strlAry[1]);
	c= Integer.parseInt(strlAry[2]);

	if(a<b){
		if(b<c){
			System.out.println(a+" "+b+" "+c);
		}
		else{
			System.out.println(c+" "+a+" "+b);
		}
	}
	else if(b<c){
		if(c<a){
			System.out.println(b+" "+c+" "+a);
		}
		else{
			System.out.println(b+" "+a+" "+c);
		}
	}
	else{
		if(a<c){
			System.out.println(a+" "+c+" "+b);
		}
		else{
			System.out.println(c+" "+b+" "+a);
		}
	}
	}
}