import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] three = sc.nextLine().split(" ");
		int n1 = Integer.parseInt(three[0]);
		int n2 = Integer.parseInt(three[1]);
		int n3 = Integer.parseInt(three[2]);

		int[] nArray = {n1, n2, n3,};

		java.util.Arrays.sort(nArray);

		System.out.println(nArray[0] + " " + nArray[1] + " " + nArray[2]);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] three = sc.nextLine().split(" ");
		int n1 = Integer.parseInt(three[0]);
		int n2 = Integer.parseInt(three[1]);
		int n3 = Integer.parseInt(three[2]);

		int[] nArray = {n1, n2, n3,};

		java.util.Arrays.sort(nArray);

		System.out.println(nArray[0] + " " + nArray[1] + " " + nArray[2]);
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] three = sc.nextLine().split(" ");
		int n1 = Integer.parseInt(three[0]);
		int n2 = Integer.parseInt(three[1]);
		int n3 = Integer.parseInt(three[2]);

		int[] nArray = {n1, n2, n3,};

		java.util.Arrays.sort(nArray);

		System.out.println(nArray[0] + " " + nArray[1] + " " + nArray[2]);
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] three = sc.nextLine().split(" ");
		int n1 = Integer.parseInt(three[0]);
		int n2 = Integer.parseInt(three[1]);
		int n3 = Integer.parseInt(three[2]);

		int[] nArray = {n1, n2, n3,};

		java.util.Arrays.sort(nArray);

		System.out.println(nArray[0] + " " + nArray[1] + " " + nArray[2]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] three = sc.nextLine().split(" "); three sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int n1 = Integer.parseInt(three[0]); n1 Integer.parseInt(three[0]) Integer.parseInt Integer three[0] three 0 int n2 = Integer.parseInt(three[1]); n2 Integer.parseInt(three[1]) Integer.parseInt Integer three[1] three 1 int n3 = Integer.parseInt(three[2]); n3 Integer.parseInt(three[2]) Integer.parseInt Integer three[2] three 2 int[] nArray = {n1, n2, n3,}; nArray {n1, n2, n3,} n1 n2 n3 java.util.Arrays.sort(nArray) java.util.Arrays.sort java.util.Arrays java.util java java.util java.util.Arrays nArray System.out.println(nArray[0] + " " + nArray[1] + " " + nArray[2]) System.out.println System.out System System.out nArray[0] + " " + nArray[1] + " " + nArray[2] " " nArray[1] nArray[0] + " " + nArray[1] + " " + nArray[2] nArray[0] nArray 0 " " nArray[1] nArray 1 " " nArray[2] nArray 2 String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] three = sc.nextLine().split(" ");
		int n1 = Integer.parseInt(three[0]);
		int n2 = Integer.parseInt(three[1]);
		int n3 = Integer.parseInt(three[2]);

		int[] nArray = {n1, n2, n3,};

		java.util.Arrays.sort(nArray);

		System.out.println(nArray[0] + " " + nArray[1] + " " + nArray[2]);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] three = sc.nextLine().split(" ");
		int n1 = Integer.parseInt(three[0]);
		int n2 = Integer.parseInt(three[1]);
		int n3 = Integer.parseInt(three[2]);

		int[] nArray = {n1, n2, n3,};

		java.util.Arrays.sort(nArray);

		System.out.println(nArray[0] + " " + nArray[1] + " " + nArray[2]);
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);

		String[] three = sc.nextLine().split(" ");
		int n1 = Integer.parseInt(three[0]);
		int n2 = Integer.parseInt(three[1]);
		int n3 = Integer.parseInt(three[2]);

		int[] nArray = {n1, n2, n3,};

		java.util.Arrays.sort(nArray);

		System.out.println(nArray[0] + " " + nArray[1] + " " + nArray[2]);
	}

}