//Sorting Three Numbers
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String[] abc = in.readLine().split(" ");

		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		if (a <= b && b <= c) {
			System.out.println(a + " " + b + " " + c);
		} else if (a <= c && c <= b) {
			System.out.println(a + " " + c + " " + b);
		} else if (b <= a && a <= c) {
			System.out.println(b + " " + a + " " + c);
		} else if (b <= c && c <= a) {
			System.out.println(b + " " + c + " " + a);
		} else if (c <= a && a <= b) {
			System.out.println(c + " " + a + " " + b);
		} else if (c <= b && b <= a) {
			System.out.println(c + " " + b + " " + a);
		}
	}
} 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 in = new BufferedReader(new InputStreamReader(System.in));

		String[] abc = in.readLine().split(" ");

		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		if (a <= b && b <= c) {
			System.out.println(a + " " + b + " " + c);
		} else if (a <= c && c <= b) {
			System.out.println(a + " " + c + " " + b);
		} else if (b <= a && a <= c) {
			System.out.println(b + " " + a + " " + c);
		} else if (b <= c && c <= a) {
			System.out.println(b + " " + c + " " + a);
		} else if (c <= a && a <= b) {
			System.out.println(c + " " + a + " " + b);
		} else if (c <= b && b <= a) {
			System.out.println(c + " " + b + " " + a);
		}
	}
} Main public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String[] abc = in.readLine().split(" ");

		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

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

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String[] abc = in.readLine().split(" ");

		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		if (a <= b && b <= c) {
			System.out.println(a + " " + b + " " + c);
		} else if (a <= c && c <= b) {
			System.out.println(a + " " + c + " " + b);
		} else if (b <= a && a <= c) {
			System.out.println(b + " " + a + " " + c);
		} else if (b <= c && c <= a) {
			System.out.println(b + " " + c + " " + a);
		} else if (c <= a && a <= b) {
			System.out.println(c + " " + a + " " + b);
		} else if (c <= b && b <= a) {
			System.out.println(c + " " + b + " " + a);
		}
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String[] abc = in.readLine().split(" "); abc in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int a = Integer.parseInt(abc[0]); a Integer.parseInt(abc[0]) Integer.parseInt Integer abc[0] abc 0 int b = Integer.parseInt(abc[1]); b Integer.parseInt(abc[1]) Integer.parseInt Integer abc[1] abc 1 int c = Integer.parseInt(abc[2]); c Integer.parseInt(abc[2]) Integer.parseInt Integer abc[2] abc 2 if (a <= b && b <= c) {
			System.out.println(a + " " + b + " " + c);
		} else if (a <= c && c <= b) {
			System.out.println(a + " " + c + " " + b);
		} else if (b <= a && a <= c) {
			System.out.println(b + " " + a + " " + c);
		} else if (b <= c && c <= a) {
			System.out.println(b + " " + c + " " + a);
		} else if (c <= a && a <= b) {
			System.out.println(c + " " + a + " " + b);
		} else if (c <= b && b <= a) {
			System.out.println(c + " " + b + " " + a);
		} a <= b && b <= c a <= b 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 && c <= b) {
			System.out.println(a + " " + c + " " + b);
		} else if (b <= a && a <= c) {
			System.out.println(b + " " + a + " " + c);
		} else if (b <= c && c <= a) {
			System.out.println(b + " " + c + " " + a);
		} else if (c <= a && a <= b) {
			System.out.println(c + " " + a + " " + b);
		} else if (c <= b && b <= a) {
			System.out.println(c + " " + b + " " + a);
		} a <= c && c <= b a <= c a c c <= b c 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 <= a && a <= c) {
			System.out.println(b + " " + a + " " + c);
		} else if (b <= c && c <= a) {
			System.out.println(b + " " + c + " " + a);
		} else if (c <= a && a <= b) {
			System.out.println(c + " " + a + " " + b);
		} else if (c <= b && b <= a) {
			System.out.println(c + " " + b + " " + a);
		} b <= a && a <= c b <= a b 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 if (b <= c && c <= a) {
			System.out.println(b + " " + c + " " + a);
		} else if (c <= a && a <= b) {
			System.out.println(c + " " + a + " " + b);
		} else if (c <= b && b <= a) {
			System.out.println(c + " " + b + " " + a);
		} b <= c && c <= a b <= c b 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 if (c <= a && a <= b) {
			System.out.println(c + " " + a + " " + b);
		} else if (c <= b && b <= a) {
			System.out.println(c + " " + b + " " + a);
		} c <= a && a <= b c <= a c a a <= b a 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 && b <= a) {
			System.out.println(c + " " + b + " " + a);
		} c <= b && b <= a c <= b c b b <= a b a {
			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
//Sorting Three Numbers
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		String[] abc = in.readLine().split(" ");

		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

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