import java.util.Scanner;

class Main
{
	public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );
		int a[] = new int[ 3 ];
		int tmp = 0;

		for ( int i = 0; i < 3; i++ ) {
			a[ i ] = sc.nextInt ();
		}
		
		for ( int j = 1; 0 <= j; j-- ) {
			if ( a[ j + 1 ] < a[ j ] ) {
				tmp = a[ j + 1 ];
				a[ j + 1 ] = a[ j ];
				a[ j ] = tmp;
			}
		}
		
		if ( a[ 2 ] < a[ 1 ] ) {
			tmp = a[ 2 ];
			a[ 2 ] = a[ 1 ];
			a[ 1 ] = tmp;
		}

		System.out.println ( a[ 0 ] + " " + a[ 1 ] + " " + a[ 2 ] );
	}
} import java.util.Scanner; Scanner java.util class Main
{
	public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );
		int a[] = new int[ 3 ];
		int tmp = 0;

		for ( int i = 0; i < 3; i++ ) {
			a[ i ] = sc.nextInt ();
		}
		
		for ( int j = 1; 0 <= j; j-- ) {
			if ( a[ j + 1 ] < a[ j ] ) {
				tmp = a[ j + 1 ];
				a[ j + 1 ] = a[ j ];
				a[ j ] = tmp;
			}
		}
		
		if ( a[ 2 ] < a[ 1 ] ) {
			tmp = a[ 2 ];
			a[ 2 ] = a[ 1 ];
			a[ 1 ] = tmp;
		}

		System.out.println ( a[ 0 ] + " " + a[ 1 ] + " " + a[ 2 ] );
	}
} Main public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );
		int a[] = new int[ 3 ];
		int tmp = 0;

		for ( int i = 0; i < 3; i++ ) {
			a[ i ] = sc.nextInt ();
		}
		
		for ( int j = 1; 0 <= j; j-- ) {
			if ( a[ j + 1 ] < a[ j ] ) {
				tmp = a[ j + 1 ];
				a[ j + 1 ] = a[ j ];
				a[ j ] = tmp;
			}
		}
		
		if ( a[ 2 ] < a[ 1 ] ) {
			tmp = a[ 2 ];
			a[ 2 ] = a[ 1 ];
			a[ 1 ] = tmp;
		}

		System.out.println ( a[ 0 ] + " " + a[ 1 ] + " " + a[ 2 ] );
	} main {
		Scanner sc = new Scanner ( System.in );
		int a[] = new int[ 3 ];
		int tmp = 0;

		for ( int i = 0; i < 3; i++ ) {
			a[ i ] = sc.nextInt ();
		}
		
		for ( int j = 1; 0 <= j; j-- ) {
			if ( a[ j + 1 ] < a[ j ] ) {
				tmp = a[ j + 1 ];
				a[ j + 1 ] = a[ j ];
				a[ j ] = tmp;
			}
		}
		
		if ( a[ 2 ] < a[ 1 ] ) {
			tmp = a[ 2 ];
			a[ 2 ] = a[ 1 ];
			a[ 1 ] = tmp;
		}

		System.out.println ( a[ 0 ] + " " + a[ 1 ] + " " + a[ 2 ] );
	} Scanner sc = new Scanner ( System.in ); sc new Scanner ( System.in ) int a[] = new int[ 3 ]; a new int[ 3 ] 3 int tmp = 0; tmp 0 for ( int i = 0; i < 3; i++ ) {
			a[ i ] = sc.nextInt ();
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			a[ i ] = sc.nextInt ();
		} {
			a[ i ] = sc.nextInt ();
		} a[ i ] = sc.nextInt () a[ i ] a i sc.nextInt () sc.nextInt sc for ( int j = 1; 0 <= j; j-- ) {
			if ( a[ j + 1 ] < a[ j ] ) {
				tmp = a[ j + 1 ];
				a[ j + 1 ] = a[ j ];
				a[ j ] = tmp;
			}
		} int j = 1; int j = 1; j 1 0 <= j 0 j j-- j-- j {
			if ( a[ j + 1 ] < a[ j ] ) {
				tmp = a[ j + 1 ];
				a[ j + 1 ] = a[ j ];
				a[ j ] = tmp;
			}
		} {
			if ( a[ j + 1 ] < a[ j ] ) {
				tmp = a[ j + 1 ];
				a[ j + 1 ] = a[ j ];
				a[ j ] = tmp;
			}
		} if ( a[ j + 1 ] < a[ j ] ) {
				tmp = a[ j + 1 ];
				a[ j + 1 ] = a[ j ];
				a[ j ] = tmp;
			} a[ j + 1 ] < a[ j ] a[ j + 1 ] a j + 1 j 1 a[ j ] a j {
				tmp = a[ j + 1 ];
				a[ j + 1 ] = a[ j ];
				a[ j ] = tmp;
			} tmp = a[ j + 1 ] tmp a[ j + 1 ] a j + 1 j 1 a[ j + 1 ] = a[ j ] a[ j + 1 ] a j + 1 j 1 a[ j ] a j a[ j ] = tmp a[ j ] a j tmp if ( a[ 2 ] < a[ 1 ] ) {
			tmp = a[ 2 ];
			a[ 2 ] = a[ 1 ];
			a[ 1 ] = tmp;
		} a[ 2 ] < a[ 1 ] a[ 2 ] a 2 a[ 1 ] a 1 {
			tmp = a[ 2 ];
			a[ 2 ] = a[ 1 ];
			a[ 1 ] = tmp;
		} tmp = a[ 2 ] tmp a[ 2 ] a 2 a[ 2 ] = a[ 1 ] a[ 2 ] a 2 a[ 1 ] a 1 a[ 1 ] = tmp a[ 1 ] a 1 tmp System.out.println ( a[ 0 ] + " " + a[ 1 ] + " " + a[ 2 ] ) System.out.println System.out System System.out a[ 0 ] + " " + a[ 1 ] + " " + a[ 2 ] " " a[ 1 ] a[ 0 ] + " " + a[ 1 ] + " " + a[ 2 ] a[ 0 ] a 0 " " a[ 1 ] a 1 " " a[ 2 ] a 2 String[] args args
import java.util.Scanner;

class Main
{
	public static void main ( String[] args ) {
		Scanner sc = new Scanner ( System.in );
		int a[] = new int[ 3 ];
		int tmp = 0;

		for ( int i = 0; i < 3; i++ ) {
			a[ i ] = sc.nextInt ();
		}
		
		for ( int j = 1; 0 <= j; j-- ) {
			if ( a[ j + 1 ] < a[ j ] ) {
				tmp = a[ j + 1 ];
				a[ j + 1 ] = a[ j ];
				a[ j ] = tmp;
			}
		}
		
		if ( a[ 2 ] < a[ 1 ] ) {
			tmp = a[ 2 ];
			a[ 2 ] = a[ 1 ];
			a[ 1 ] = tmp;
		}

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