import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int num1, num2, num3;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		
		if (a < b) {
			num1 = a;
			num2 = b;
		} else {
			num1 = b;
			num2 = a;
		}
		
		int c = in.nextInt();
		if (c < num1) {
			num3 = num2;
			num2 = num1;
			num1 = c;
		} else if (c > num2) {
			num3 = c;
		} else {
			num3 = num2;
			num2 = c;
		}

		System.out.println(num1 + " " + num2 + " " + num3);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		int num1, num2, num3;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		
		if (a < b) {
			num1 = a;
			num2 = b;
		} else {
			num1 = b;
			num2 = a;
		}
		
		int c = in.nextInt();
		if (c < num1) {
			num3 = num2;
			num2 = num1;
			num1 = c;
		} else if (c > num2) {
			num3 = c;
		} else {
			num3 = num2;
			num2 = c;
		}

		System.out.println(num1 + " " + num2 + " " + num3);
	}
} Main public static void main(String[] args) {
		int num1, num2, num3;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		
		if (a < b) {
			num1 = a;
			num2 = b;
		} else {
			num1 = b;
			num2 = a;
		}
		
		int c = in.nextInt();
		if (c < num1) {
			num3 = num2;
			num2 = num1;
			num1 = c;
		} else if (c > num2) {
			num3 = c;
		} else {
			num3 = num2;
			num2 = c;
		}

		System.out.println(num1 + " " + num2 + " " + num3);
	} main {
		int num1, num2, num3;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		
		if (a < b) {
			num1 = a;
			num2 = b;
		} else {
			num1 = b;
			num2 = a;
		}
		
		int c = in.nextInt();
		if (c < num1) {
			num3 = num2;
			num2 = num1;
			num1 = c;
		} else if (c > num2) {
			num3 = c;
		} else {
			num3 = num2;
			num2 = c;
		}

		System.out.println(num1 + " " + num2 + " " + num3);
	} int num1 num1 num2 num2 num3; num3 Scanner in = new Scanner(System.in); in new Scanner(System.in) int a = in.nextInt(); a in.nextInt() in.nextInt in int b = in.nextInt(); b in.nextInt() in.nextInt in if (a < b) {
			num1 = a;
			num2 = b;
		} else {
			num1 = b;
			num2 = a;
		} a < b a b {
			num1 = a;
			num2 = b;
		} num1 = a num1 a num2 = b num2 b {
			num1 = b;
			num2 = a;
		} num1 = b num1 b num2 = a num2 a int c = in.nextInt(); c in.nextInt() in.nextInt in if (c < num1) {
			num3 = num2;
			num2 = num1;
			num1 = c;
		} else if (c > num2) {
			num3 = c;
		} else {
			num3 = num2;
			num2 = c;
		} c < num1 c num1 {
			num3 = num2;
			num2 = num1;
			num1 = c;
		} num3 = num2 num3 num2 num2 = num1 num2 num1 num1 = c num1 c if (c > num2) {
			num3 = c;
		} else {
			num3 = num2;
			num2 = c;
		} c > num2 c num2 {
			num3 = c;
		} num3 = c num3 c {
			num3 = num2;
			num2 = c;
		} num3 = num2 num3 num2 num2 = c num2 c System.out.println(num1 + " " + num2 + " " + num3) System.out.println System.out System System.out num1 + " " + num2 + " " + num3 " " num2 num1 + " " + num2 + " " + num3 num1 " " num2 " " num3 String[] args args public class Main {
	public static void main(String[] args) {
		int num1, num2, num3;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		
		if (a < b) {
			num1 = a;
			num2 = b;
		} else {
			num1 = b;
			num2 = a;
		}
		
		int c = in.nextInt();
		if (c < num1) {
			num3 = num2;
			num2 = num1;
			num1 = c;
		} else if (c > num2) {
			num3 = c;
		} else {
			num3 = num2;
			num2 = c;
		}

		System.out.println(num1 + " " + num2 + " " + num3);
	}
} public class Main {
	public static void main(String[] args) {
		int num1, num2, num3;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		
		if (a < b) {
			num1 = a;
			num2 = b;
		} else {
			num1 = b;
			num2 = a;
		}
		
		int c = in.nextInt();
		if (c < num1) {
			num3 = num2;
			num2 = num1;
			num1 = c;
		} else if (c > num2) {
			num3 = c;
		} else {
			num3 = num2;
			num2 = c;
		}

		System.out.println(num1 + " " + num2 + " " + num3);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		int num1, num2, num3;
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		
		if (a < b) {
			num1 = a;
			num2 = b;
		} else {
			num1 = b;
			num2 = a;
		}
		
		int c = in.nextInt();
		if (c < num1) {
			num3 = num2;
			num2 = num1;
			num1 = c;
		} else if (c > num2) {
			num3 = c;
		} else {
			num3 = num2;
			num2 = c;
		}

		System.out.println(num1 + " " + num2 + " " + num3);
	}
}