import java.util.Scanner;

public class Main{

    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);

	int num1 = scan.nextInt();
	int num2 = scan.nextInt();
	int num3 = scan.nextInt();

	if( num1 <= num2 )
	    {
		if( num2 <= num3)
		    System.out.println(num1+" "+num2+" "+num3);
		else if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2);
		
	    }
	else if( num2 <= num1 )
	    {

		if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1);
	    }
 

    }
	

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

    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);

	int num1 = scan.nextInt();
	int num2 = scan.nextInt();
	int num3 = scan.nextInt();

	if( num1 <= num2 )
	    {
		if( num2 <= num3)
		    System.out.println(num1+" "+num2+" "+num3);
		else if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2);
		
	    }
	else if( num2 <= num1 )
	    {

		if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1);
	    }
 

    }
	

} Main public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);

	int num1 = scan.nextInt();
	int num2 = scan.nextInt();
	int num3 = scan.nextInt();

	if( num1 <= num2 )
	    {
		if( num2 <= num3)
		    System.out.println(num1+" "+num2+" "+num3);
		else if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2);
		
	    }
	else if( num2 <= num1 )
	    {

		if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1);
	    }
 

    } main {
	Scanner scan = new Scanner(System.in);

	int num1 = scan.nextInt();
	int num2 = scan.nextInt();
	int num3 = scan.nextInt();

	if( num1 <= num2 )
	    {
		if( num2 <= num3)
		    System.out.println(num1+" "+num2+" "+num3);
		else if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2);
		
	    }
	else if( num2 <= num1 )
	    {

		if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1);
	    }
 

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int num1 = scan.nextInt(); num1 scan.nextInt() scan.nextInt scan int num2 = scan.nextInt(); num2 scan.nextInt() scan.nextInt scan int num3 = scan.nextInt(); num3 scan.nextInt() scan.nextInt scan if( num1 <= num2 )
	    {
		if( num2 <= num3)
		    System.out.println(num1+" "+num2+" "+num3);
		else if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2);
		
	    }
	else if( num2 <= num1 )
	    {

		if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1);
	    } num1 <= num2 num1 num2 {
		if( num2 <= num3)
		    System.out.println(num1+" "+num2+" "+num3);
		else if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2);
		
	    } if( num2 <= num3)
		    System.out.println(num1+" "+num2+" "+num3);
		else if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2); num2 <= num3 num2 num3 System.out.println(num1+" "+num2+" "+num3) System.out.println System.out System System.out num1+" "+num2+" "+num3 " " num2 num1+" "+num2+" "+num3 num1 " " num2 " " num3 if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2); num3 <= num1 num3 num1 System.out.println(num3+" "+num1+" "+num2) System.out.println System.out System System.out num3+" "+num1+" "+num2 " " num1 num3+" "+num1+" "+num2 num3 " " num1 " " num2 if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2); num1 <= num3 && num3 <= num2 num1 <= num3 num1 num3 num3 <= num2 num3 num2 System.out.println(num1+" "+num3+" "+num2) System.out.println System.out System System.out num1+" "+num3+" "+num2 " " num3 num1+" "+num3+" "+num2 num1 " " num3 " " num2 if( num2 <= num1 )
	    {

		if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1);
	    } num2 <= num1 num2 num1 {

		if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1);
	    } if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1); num1 <= num3 num1 num3 System.out.println(num2+" "+num1+" "+num3) System.out.println System.out System System.out num2+" "+num1+" "+num3 " " num1 num2+" "+num1+" "+num3 num2 " " num1 " " num3 if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1); num3 <= num2 num3 num2 System.out.println(num3+" "+num2+" "+num1) System.out.println System.out System System.out num3+" "+num2+" "+num1 " " num2 num3+" "+num2+" "+num1 num3 " " num2 " " num1 if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1); num2 <= num3 && num3 <= num1 num2 <= num3 num2 num3 num3 <= num1 num3 num1 System.out.println(num2+" "+num3+" "+num1) System.out.println System.out System System.out num2+" "+num3+" "+num1 " " num3 num2+" "+num3+" "+num1 num2 " " num3 " " num1 String argv[] argv public class Main{

    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);

	int num1 = scan.nextInt();
	int num2 = scan.nextInt();
	int num3 = scan.nextInt();

	if( num1 <= num2 )
	    {
		if( num2 <= num3)
		    System.out.println(num1+" "+num2+" "+num3);
		else if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2);
		
	    }
	else if( num2 <= num1 )
	    {

		if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1);
	    }
 

    }
	

} public class Main{

    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);

	int num1 = scan.nextInt();
	int num2 = scan.nextInt();
	int num3 = scan.nextInt();

	if( num1 <= num2 )
	    {
		if( num2 <= num3)
		    System.out.println(num1+" "+num2+" "+num3);
		else if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2);
		
	    }
	else if( num2 <= num1 )
	    {

		if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1);
	    }
 

    }
	

} Main
import java.util.Scanner;

public class Main{

    public static void main(String argv[])
    {
	Scanner scan = new Scanner(System.in);

	int num1 = scan.nextInt();
	int num2 = scan.nextInt();
	int num3 = scan.nextInt();

	if( num1 <= num2 )
	    {
		if( num2 <= num3)
		    System.out.println(num1+" "+num2+" "+num3);
		else if( num3 <= num1)
		    System.out.println(num3+" "+num1+" "+num2);
		else if( num1 <= num3 && num3 <= num2 )
		    System.out.println(num1+" "+num3+" "+num2);
		
	    }
	else if( num2 <= num1 )
	    {

		if( num1 <= num3)
		    System.out.println(num2+" "+num1+" "+num3);
		else if( num3 <= num2)
		    System.out.println(num3+" "+num2+" "+num1);
		else if( num2 <= num3 && num3 <= num1 )
		    System.out.println(num2+" "+num3+" "+num1);
	    }
 

    }
	

}