/*AOJ-ITP-2-2*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		int a = Integer.parseInt(str[0]);
		int b = Integer.parseInt(str[1]);
		int c = Integer.parseInt(str[2]);
		int[] sort =  {a,b,c}; 
		int v=0;
		
		if(!(a >= 1 || b >= 1 || c >= 1 || a <= 10000 || b <= 10000 || c <= 10000)){System.exit(1);}
		
		for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		}
		
		for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		}
		
		System.out.println(sort[0] + " " + sort[1] + " " + sort[2]);
		
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		int a = Integer.parseInt(str[0]);
		int b = Integer.parseInt(str[1]);
		int c = Integer.parseInt(str[2]);
		int[] sort =  {a,b,c}; 
		int v=0;
		
		if(!(a >= 1 || b >= 1 || c >= 1 || a <= 10000 || b <= 10000 || c <= 10000)){System.exit(1);}
		
		for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		}
		
		for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		}
		
		System.out.println(sort[0] + " " + sort[1] + " " + sort[2]);
		
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		int a = Integer.parseInt(str[0]);
		int b = Integer.parseInt(str[1]);
		int c = Integer.parseInt(str[2]);
		int[] sort =  {a,b,c}; 
		int v=0;
		
		if(!(a >= 1 || b >= 1 || c >= 1 || a <= 10000 || b <= 10000 || c <= 10000)){System.exit(1);}
		
		for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		}
		
		for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		}
		
		System.out.println(sort[0] + " " + sort[1] + " " + sort[2]);
		
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		int a = Integer.parseInt(str[0]);
		int b = Integer.parseInt(str[1]);
		int c = Integer.parseInt(str[2]);
		int[] sort =  {a,b,c}; 
		int v=0;
		
		if(!(a >= 1 || b >= 1 || c >= 1 || a <= 10000 || b <= 10000 || c <= 10000)){System.exit(1);}
		
		for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		}
		
		for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		}
		
		System.out.println(sort[0] + " " + sort[1] + " " + sort[2]);
		
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int b = Integer.parseInt(str[1]); b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 int c = Integer.parseInt(str[2]); c Integer.parseInt(str[2]) Integer.parseInt Integer str[2] str 2 int[] sort =  {a,b,c}; sort {a,b,c} a b c int v=0; v 0 if(!(a >= 1 || b >= 1 || c >= 1 || a <= 10000 || b <= 10000 || c <= 10000)){System.exit(1);} !(a >= 1 || b >= 1 || c >= 1 || a <= 10000 || b <= 10000 || c <= 10000) (a >= 1 || b >= 1 || c >= 1 || a <= 10000 || b <= 10000 || c <= 10000) b <= 10000 a <= 10000 c >= 1 a >= 1 || b >= 1 || c >= 1 || a <= 10000 || b <= 10000 || c <= 10000 a >= 1 a 1 b >= 1 b 1 c >= 1 c 1 a <= 10000 a 10000 b <= 10000 b 10000 c <= 10000 c 10000 {System.exit(1);} System.exit(1) System.exit System 1 for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		} int i = 1 ; int i = 1 ; i 1 i < sort.length i sort.length sort sort.length i++ i++ i {
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		} {
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		} if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			} sort[i-1] > sort[i] sort[i-1] sort i-1 i 1 sort[i] sort i {
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			} v = sort[i-1] v sort[i-1] sort i-1 i 1 sort[i-1] = sort[i] sort[i-1] sort i-1 i 1 sort[i] sort i sort[i] = v sort[i] sort i v for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		} int i = 1 ; int i = 1 ; i 1 i < sort.length i sort.length sort sort.length i++ i++ i {
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		} {
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		} if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			} sort[i-1] > sort[i] sort[i-1] sort i-1 i 1 sort[i] sort i {
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			} v = sort[i-1] v sort[i-1] sort i-1 i 1 sort[i-1] = sort[i] sort[i-1] sort i-1 i 1 sort[i] sort i sort[i] = v sort[i] sort i v System.out.println(sort[0] + " " + sort[1] + " " + sort[2]) System.out.println System.out System System.out sort[0] + " " + sort[1] + " " + sort[2] " " sort[1] sort[0] + " " + sort[1] + " " + sort[2] sort[0] sort 0 " " sort[1] sort 1 " " sort[2] sort 2 String[] args args
/*AOJ-ITP-2-2*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
 
class Main{
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		int a = Integer.parseInt(str[0]);
		int b = Integer.parseInt(str[1]);
		int c = Integer.parseInt(str[2]);
		int[] sort =  {a,b,c}; 
		int v=0;
		
		if(!(a >= 1 || b >= 1 || c >= 1 || a <= 10000 || b <= 10000 || c <= 10000)){System.exit(1);}
		
		for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		}
		
		for(int i = 1 ; i < sort.length ; i++){
			if(sort[i-1] > sort[i]){
				v = sort[i-1];
				sort[i-1] = sort[i];
				sort[i] = v;
			}
		}
		
		System.out.println(sort[0] + " " + sort[1] + " " + sort[2]);
		
	}
}