import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);
		if((a <= 10000) && (a >= 1) && (b <= 10000) && (b >= 1) && (c <= 10000) && (c >= 1)){

			if((b < c) && (a < c)){
				if(a > b){
					System.out.println(b +" "+ a +" "+ c);
				}else{
					System.out.println(a +" "+ b +" "+ c);
				}
			}else if((a < b)&&(c < b)){
				if(a > c){
					System.out.println(c +" "+ a +" "+ b);
				}else{
					System.out.println(a +" "+ c +" "+ b);
				}
			}else{
				if(b > c){
					System.out.println(c +" "+ b +" "+ a);
				}else{
					System.out.println(b +" "+ c +" "+ a);
				}
			}
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);
		if((a <= 10000) && (a >= 1) && (b <= 10000) && (b >= 1) && (c <= 10000) && (c >= 1)){

			if((b < c) && (a < c)){
				if(a > b){
					System.out.println(b +" "+ a +" "+ c);
				}else{
					System.out.println(a +" "+ b +" "+ c);
				}
			}else if((a < b)&&(c < b)){
				if(a > c){
					System.out.println(c +" "+ a +" "+ b);
				}else{
					System.out.println(a +" "+ c +" "+ b);
				}
			}else{
				if(b > c){
					System.out.println(c +" "+ b +" "+ a);
				}else{
					System.out.println(b +" "+ c +" "+ a);
				}
			}
		}
	}
} Main public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);
		if((a <= 10000) && (a >= 1) && (b <= 10000) && (b >= 1) && (c <= 10000) && (c >= 1)){

			if((b < c) && (a < c)){
				if(a > b){
					System.out.println(b +" "+ a +" "+ c);
				}else{
					System.out.println(a +" "+ b +" "+ c);
				}
			}else if((a < b)&&(c < b)){
				if(a > c){
					System.out.println(c +" "+ a +" "+ b);
				}else{
					System.out.println(a +" "+ c +" "+ b);
				}
			}else{
				if(b > c){
					System.out.println(c +" "+ b +" "+ a);
				}else{
					System.out.println(b +" "+ c +" "+ a);
				}
			}
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);
		if((a <= 10000) && (a >= 1) && (b <= 10000) && (b >= 1) && (c <= 10000) && (c >= 1)){

			if((b < c) && (a < c)){
				if(a > b){
					System.out.println(b +" "+ a +" "+ c);
				}else{
					System.out.println(a +" "+ b +" "+ c);
				}
			}else if((a < b)&&(c < b)){
				if(a > c){
					System.out.println(c +" "+ a +" "+ b);
				}else{
					System.out.println(a +" "+ c +" "+ b);
				}
			}else{
				if(b > c){
					System.out.println(c +" "+ b +" "+ a);
				}else{
					System.out.println(b +" "+ c +" "+ a);
				}
			}
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br String[] s = str.split(" "); s str.split(" ") str.split str " " int a = Integer.parseInt(s[0]); a Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int b = Integer.parseInt(s[1]); b Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int c = Integer.parseInt(s[2]); c Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 if((a <= 10000) && (a >= 1) && (b <= 10000) && (b >= 1) && (c <= 10000) && (c >= 1)){

			if((b < c) && (a < c)){
				if(a > b){
					System.out.println(b +" "+ a +" "+ c);
				}else{
					System.out.println(a +" "+ b +" "+ c);
				}
			}else if((a < b)&&(c < b)){
				if(a > c){
					System.out.println(c +" "+ a +" "+ b);
				}else{
					System.out.println(a +" "+ c +" "+ b);
				}
			}else{
				if(b > c){
					System.out.println(c +" "+ b +" "+ a);
				}else{
					System.out.println(b +" "+ c +" "+ a);
				}
			}
		} (a <= 10000) && (a >= 1) && (b <= 10000) && (b >= 1) && (c <= 10000) && (c >= 1) (c <= 10000) (b >= 1) (b <= 10000) (a <= 10000) && (a >= 1) && (b <= 10000) && (b >= 1) && (c <= 10000) && (c >= 1) (a <= 10000) a 10000 (a >= 1) a 1 (b <= 10000) b 10000 (b >= 1) b 1 (c <= 10000) c 10000 (c >= 1) c 1 {

			if((b < c) && (a < c)){
				if(a > b){
					System.out.println(b +" "+ a +" "+ c);
				}else{
					System.out.println(a +" "+ b +" "+ c);
				}
			}else if((a < b)&&(c < b)){
				if(a > c){
					System.out.println(c +" "+ a +" "+ b);
				}else{
					System.out.println(a +" "+ c +" "+ b);
				}
			}else{
				if(b > c){
					System.out.println(c +" "+ b +" "+ a);
				}else{
					System.out.println(b +" "+ c +" "+ a);
				}
			}
		} if((b < c) && (a < c)){
				if(a > b){
					System.out.println(b +" "+ a +" "+ c);
				}else{
					System.out.println(a +" "+ b +" "+ c);
				}
			}else if((a < b)&&(c < b)){
				if(a > c){
					System.out.println(c +" "+ a +" "+ b);
				}else{
					System.out.println(a +" "+ c +" "+ b);
				}
			}else{
				if(b > c){
					System.out.println(c +" "+ b +" "+ a);
				}else{
					System.out.println(b +" "+ c +" "+ a);
				}
			} (b < c) && (a < c) (b < c) b c (a < c) a c {
				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 if((a < b)&&(c < b)){
				if(a > c){
					System.out.println(c +" "+ a +" "+ b);
				}else{
					System.out.println(a +" "+ c +" "+ b);
				}
			}else{
				if(b > c){
					System.out.println(c +" "+ b +" "+ a);
				}else{
					System.out.println(b +" "+ c +" "+ a);
				}
			} (a < b)&&(c < b) (a < b) a b (c < b) c b {
				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(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 String[] args args public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);
		if((a <= 10000) && (a >= 1) && (b <= 10000) && (b >= 1) && (c <= 10000) && (c >= 1)){

			if((b < c) && (a < c)){
				if(a > b){
					System.out.println(b +" "+ a +" "+ c);
				}else{
					System.out.println(a +" "+ b +" "+ c);
				}
			}else if((a < b)&&(c < b)){
				if(a > c){
					System.out.println(c +" "+ a +" "+ b);
				}else{
					System.out.println(a +" "+ c +" "+ b);
				}
			}else{
				if(b > c){
					System.out.println(c +" "+ b +" "+ a);
				}else{
					System.out.println(b +" "+ c +" "+ a);
				}
			}
		}
	}
} public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);
		if((a <= 10000) && (a >= 1) && (b <= 10000) && (b >= 1) && (c <= 10000) && (c >= 1)){

			if((b < c) && (a < c)){
				if(a > b){
					System.out.println(b +" "+ a +" "+ c);
				}else{
					System.out.println(a +" "+ b +" "+ c);
				}
			}else if((a < b)&&(c < b)){
				if(a > c){
					System.out.println(c +" "+ a +" "+ b);
				}else{
					System.out.println(a +" "+ c +" "+ b);
				}
			}else{
				if(b > c){
					System.out.println(c +" "+ b +" "+ a);
				}else{
					System.out.println(b +" "+ c +" "+ a);
				}
			}
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args)throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] s = str.split(" ");

		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int c = Integer.parseInt(s[2]);
		if((a <= 10000) && (a >= 1) && (b <= 10000) && (b >= 1) && (c <= 10000) && (c >= 1)){

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