import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int first = Integer.parseInt( scaner.next() );
		int second= Integer.parseInt( scaner.next() );
		int third = Integer.parseInt( scaner.next() );

		int [] nums = { first, second, third };

		bobleSort( nums );

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

		scaner.close();
	}

	public static void bobleSort( int [] nums ) {

		for ( int i = 0; i < nums.length - 1; i++ ) {
			for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			}
		}
	}

	public static void swap( int [] nums, int i , int j ) {
		int remain = nums[ i ];
		nums[ i ]  = nums[ j ];
		nums[ j ]  = remain;
	}

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

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int first = Integer.parseInt( scaner.next() );
		int second= Integer.parseInt( scaner.next() );
		int third = Integer.parseInt( scaner.next() );

		int [] nums = { first, second, third };

		bobleSort( nums );

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

		scaner.close();
	}

	public static void bobleSort( int [] nums ) {

		for ( int i = 0; i < nums.length - 1; i++ ) {
			for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			}
		}
	}

	public static void swap( int [] nums, int i , int j ) {
		int remain = nums[ i ];
		nums[ i ]  = nums[ j ];
		nums[ j ]  = remain;
	}

} Main public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int first = Integer.parseInt( scaner.next() );
		int second= Integer.parseInt( scaner.next() );
		int third = Integer.parseInt( scaner.next() );

		int [] nums = { first, second, third };

		bobleSort( nums );

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

		scaner.close();
	} main {

		Scanner scaner = new Scanner( System.in );

		int first = Integer.parseInt( scaner.next() );
		int second= Integer.parseInt( scaner.next() );
		int third = Integer.parseInt( scaner.next() );

		int [] nums = { first, second, third };

		bobleSort( nums );

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

		scaner.close();
	} Scanner scaner = new Scanner( System.in ); scaner new Scanner( System.in ) int first = Integer.parseInt( scaner.next() ); first Integer.parseInt( scaner.next() ) Integer.parseInt Integer scaner.next() scaner.next scaner int second= Integer.parseInt( scaner.next() ); second Integer.parseInt( scaner.next() ) Integer.parseInt Integer scaner.next() scaner.next scaner int third = Integer.parseInt( scaner.next() ); third Integer.parseInt( scaner.next() ) Integer.parseInt Integer scaner.next() scaner.next scaner int [] nums = { first, second, third }; nums { first, second, third } first second third bobleSort( nums ) bobleSort nums System.out.println( nums[0] + " " + nums[1] + " " + nums[2] ) System.out.println System.out System System.out nums[0] + " " + nums[1] + " " + nums[2] " " nums[1] nums[0] + " " + nums[1] + " " + nums[2] nums[0] nums 0 " " nums[1] nums 1 " " nums[2] nums 2 scaner.close() scaner.close scaner String[] args args public static void bobleSort( int [] nums ) {

		for ( int i = 0; i < nums.length - 1; i++ ) {
			for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			}
		}
	} bobleSort {

		for ( int i = 0; i < nums.length - 1; i++ ) {
			for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			}
		}
	} for ( int i = 0; i < nums.length - 1; i++ ) {
			for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			}
		} int i = 0; int i = 0; i 0 i < nums.length - 1 i nums.length - 1 nums.length nums nums.length 1 i++ i++ i {
			for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			}
		} {
			for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			}
		} for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			} int j = nums.length - 1; int j = nums.length - 1; j nums.length - 1 nums.length nums nums.length 1 j > i j i j-- j-- j {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			} {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			} if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				} nums[ j ] < nums[ j - 1 ] nums[ j ] nums j nums[ j - 1 ] nums j - 1 j 1 {
					swap( nums, j, j - 1 );
				} swap( nums, j, j - 1 ) swap nums j j - 1 j 1 int [] nums nums public static void swap( int [] nums, int i , int j ) {
		int remain = nums[ i ];
		nums[ i ]  = nums[ j ];
		nums[ j ]  = remain;
	} swap {
		int remain = nums[ i ];
		nums[ i ]  = nums[ j ];
		nums[ j ]  = remain;
	} int remain = nums[ i ]; remain nums[ i ] nums i nums[ i ]  = nums[ j ] nums[ i ] nums i nums[ j ] nums j nums[ j ]  = remain nums[ j ] nums j remain int [] nums nums int i i int j j public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int first = Integer.parseInt( scaner.next() );
		int second= Integer.parseInt( scaner.next() );
		int third = Integer.parseInt( scaner.next() );

		int [] nums = { first, second, third };

		bobleSort( nums );

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

		scaner.close();
	}

	public static void bobleSort( int [] nums ) {

		for ( int i = 0; i < nums.length - 1; i++ ) {
			for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			}
		}
	}

	public static void swap( int [] nums, int i , int j ) {
		int remain = nums[ i ];
		nums[ i ]  = nums[ j ];
		nums[ j ]  = remain;
	}

} public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int first = Integer.parseInt( scaner.next() );
		int second= Integer.parseInt( scaner.next() );
		int third = Integer.parseInt( scaner.next() );

		int [] nums = { first, second, third };

		bobleSort( nums );

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

		scaner.close();
	}

	public static void bobleSort( int [] nums ) {

		for ( int i = 0; i < nums.length - 1; i++ ) {
			for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			}
		}
	}

	public static void swap( int [] nums, int i , int j ) {
		int remain = nums[ i ];
		nums[ i ]  = nums[ j ];
		nums[ j ]  = remain;
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args)  {

		Scanner scaner = new Scanner( System.in );

		int first = Integer.parseInt( scaner.next() );
		int second= Integer.parseInt( scaner.next() );
		int third = Integer.parseInt( scaner.next() );

		int [] nums = { first, second, third };

		bobleSort( nums );

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

		scaner.close();
	}

	public static void bobleSort( int [] nums ) {

		for ( int i = 0; i < nums.length - 1; i++ ) {
			for ( int j = nums.length - 1; j > i; j-- ) {
				if ( nums[ j ] < nums[ j - 1 ] ) {
					swap( nums, j, j - 1 );
				}
			}
		}
	}

	public static void swap( int [] nums, int i , int j ) {
		int remain = nums[ i ];
		nums[ i ]  = nums[ j ];
		nums[ j ]  = remain;
	}

}