import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scan s = new Scan();
		s.getNum();
	}
}

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

public class Main {
	public static void main(String[] args) {
		Scan s = new Scan();
		s.getNum();
	}
}

class Scan {
	public static void getNum() {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		if (a < b) {		
			if (b < c) {
				System.out.println(a + " " + b + " " + c);
			} else if (a < c){
				System.out.println(a + " " + c + " " + b);
			} else {
				System.out.println(c + " " + a + " " + b);
			}
		} else {
			if (c < b) {
				System.out.println(c + " " + b + " " + a);
			} else if (a < c) {
				System.out.println(b + " " + a + " " + c);
			} else {
				System.out.println(b + " " + c + " " + a);
			}
		}
	}
}