import java.util.Scanner;
class Main {

	public static void main(String[] args) {
	Scanner src = new Scanner(System.in);
	
	int a = src.nextInt();
	int b = src.nextInt();
	int c = src.nextInt();
		for(int i=0; i<2; i++){
			if(b>c){
				int t = b;
				b = c;
				c = t;
			}
			if(a>b){
				int t = a;
				a = b;
				b = t;
			}
		}
	System.out.println(a+" "+b+" "+c);
	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {
	Scanner src = new Scanner(System.in);
	
	int a = src.nextInt();
	int b = src.nextInt();
	int c = src.nextInt();
		for(int i=0; i<2; i++){
			if(b>c){
				int t = b;
				b = c;
				c = t;
			}
			if(a>b){
				int t = a;
				a = b;
				b = t;
			}
		}
	System.out.println(a+" "+b+" "+c);
	}
} Main public static void main(String[] args) {
	Scanner src = new Scanner(System.in);
	
	int a = src.nextInt();
	int b = src.nextInt();
	int c = src.nextInt();
		for(int i=0; i<2; i++){
			if(b>c){
				int t = b;
				b = c;
				c = t;
			}
			if(a>b){
				int t = a;
				a = b;
				b = t;
			}
		}
	System.out.println(a+" "+b+" "+c);
	} main {
	Scanner src = new Scanner(System.in);
	
	int a = src.nextInt();
	int b = src.nextInt();
	int c = src.nextInt();
		for(int i=0; i<2; i++){
			if(b>c){
				int t = b;
				b = c;
				c = t;
			}
			if(a>b){
				int t = a;
				a = b;
				b = t;
			}
		}
	System.out.println(a+" "+b+" "+c);
	} Scanner src = new Scanner(System.in); src new Scanner(System.in) int a = src.nextInt(); a src.nextInt() src.nextInt src int b = src.nextInt(); b src.nextInt() src.nextInt src int c = src.nextInt(); c src.nextInt() src.nextInt src for(int i=0; i<2; i++){
			if(b>c){
				int t = b;
				b = c;
				c = t;
			}
			if(a>b){
				int t = a;
				a = b;
				b = t;
			}
		} int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
			if(b>c){
				int t = b;
				b = c;
				c = t;
			}
			if(a>b){
				int t = a;
				a = b;
				b = t;
			}
		} {
			if(b>c){
				int t = b;
				b = c;
				c = t;
			}
			if(a>b){
				int t = a;
				a = b;
				b = t;
			}
		} if(b>c){
				int t = b;
				b = c;
				c = t;
			} b>c b c {
				int t = b;
				b = c;
				c = t;
			} int t = b; t b b = c b c c = t c t if(a>b){
				int t = a;
				a = b;
				b = t;
			} a>b a b {
				int t = a;
				a = b;
				b = t;
			} int t = a; t a a = b a b b = t b t System.out.println(a+" "+b+" "+c) System.out.println System.out System System.out a+" "+b+" "+c " " b a+" "+b+" "+c a " " b " " c String[] args args
import java.util.Scanner;
class Main {

	public static void main(String[] args) {
	Scanner src = new Scanner(System.in);
	
	int a = src.nextInt();
	int b = src.nextInt();
	int c = src.nextInt();
		for(int i=0; i<2; i++){
			if(b>c){
				int t = b;
				b = c;
				c = t;
			}
			if(a>b){
				int t = a;
				a = b;
				b = t;
			}
		}
	System.out.println(a+" "+b+" "+c);
	}
}