import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num[] = new int[3];
		num[0] = sc.nextInt();
		num[1] = sc.nextInt();
		num[2] = sc.nextInt();
		int a = 0;
		for(int i=0;i<2;i++){
			for(int j=1;i+j<3;j++){
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			}
		System.out.print(num[i]+" ");
		}
		System.out.println(num[2]);
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num[] = new int[3];
		num[0] = sc.nextInt();
		num[1] = sc.nextInt();
		num[2] = sc.nextInt();
		int a = 0;
		for(int i=0;i<2;i++){
			for(int j=1;i+j<3;j++){
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			}
		System.out.print(num[i]+" ");
		}
		System.out.println(num[2]);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num[] = new int[3];
		num[0] = sc.nextInt();
		num[1] = sc.nextInt();
		num[2] = sc.nextInt();
		int a = 0;
		for(int i=0;i<2;i++){
			for(int j=1;i+j<3;j++){
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			}
		System.out.print(num[i]+" ");
		}
		System.out.println(num[2]);
	} main {
		Scanner sc = new Scanner(System.in);
		int num[] = new int[3];
		num[0] = sc.nextInt();
		num[1] = sc.nextInt();
		num[2] = sc.nextInt();
		int a = 0;
		for(int i=0;i<2;i++){
			for(int j=1;i+j<3;j++){
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			}
		System.out.print(num[i]+" ");
		}
		System.out.println(num[2]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num[] = new int[3]; num new int[3] 3 num[0] = sc.nextInt() num[0] num 0 sc.nextInt() sc.nextInt sc num[1] = sc.nextInt() num[1] num 1 sc.nextInt() sc.nextInt sc num[2] = sc.nextInt() num[2] num 2 sc.nextInt() sc.nextInt sc int a = 0; a 0 for(int i=0;i<2;i++){
			for(int j=1;i+j<3;j++){
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			}
		System.out.print(num[i]+" ");
		} int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
			for(int j=1;i+j<3;j++){
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			}
		System.out.print(num[i]+" ");
		} {
			for(int j=1;i+j<3;j++){
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			}
		System.out.print(num[i]+" ");
		} for(int j=1;i+j<3;j++){
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			} int j=1; int j=1; j 1 i+j<3 i+j i j 3 j++ j++ j {
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			} {
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			} if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				} num[i] < num[i+j] num[i] num i num[i+j] num i+j i j {
				} {
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				} a = num[i] a num[i] num i num[i] = num[i+j] num[i] num i num[i+j] num i+j i j num[i+j] = a num[i+j] num i+j i j a System.out.print(num[i]+" ") System.out.print System.out System System.out num[i]+" " num[i] num i " " System.out.println(num[2]) System.out.println System.out System System.out num[2] num 2 String[] args args
import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int num[] = new int[3];
		num[0] = sc.nextInt();
		num[1] = sc.nextInt();
		num[2] = sc.nextInt();
		int a = 0;
		for(int i=0;i<2;i++){
			for(int j=1;i+j<3;j++){
				if(num[i] < num[i+j]){
				}else	{
					a = num[i];
					num[i] = num[i+j];
					num[i+j] = a;
				}
			}
		System.out.print(num[i]+" ");
		}
		System.out.println(num[2]);
	}
}
