import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int[] arr = {scan.nextInt(),scan.nextInt(),scan.nextInt()};
		Arrays.sort(arr);
		System.out.println(arr[0] + " " + arr[1] + " " + arr[2]);
	}
} import java.util.*; util.* java class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int[] arr = {scan.nextInt(),scan.nextInt(),scan.nextInt()};
		Arrays.sort(arr);
		System.out.println(arr[0] + " " + arr[1] + " " + arr[2]);
	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int[] arr = {scan.nextInt(),scan.nextInt(),scan.nextInt()};
		Arrays.sort(arr);
		System.out.println(arr[0] + " " + arr[1] + " " + arr[2]);
	} main {
		Scanner scan = new Scanner(System.in);
		int[] arr = {scan.nextInt(),scan.nextInt(),scan.nextInt()};
		Arrays.sort(arr);
		System.out.println(arr[0] + " " + arr[1] + " " + arr[2]);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] arr = {scan.nextInt(),scan.nextInt(),scan.nextInt()}; arr {scan.nextInt(),scan.nextInt(),scan.nextInt()} scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan scan.nextInt() scan.nextInt scan Arrays.sort(arr) Arrays.sort Arrays arr System.out.println(arr[0] + " " + arr[1] + " " + arr[2]) System.out.println System.out System System.out arr[0] + " " + arr[1] + " " + arr[2] " " arr[1] arr[0] + " " + arr[1] + " " + arr[2] arr[0] arr 0 " " arr[1] arr 1 " " arr[2] arr 2 String args[] args
import java.util.*;

class Main{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int[] arr = {scan.nextInt(),scan.nextInt(),scan.nextInt()};
		Arrays.sort(arr);
		System.out.println(arr[0] + " " + arr[1] + " " + arr[2]);
	}
}