import java.util.Scanner;
class Main
{
	public static void main(String[] args)throws Exception
	{
		Scanner scan=new Scanner(System.in);
		
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=scan.nextInt();
		
		if(a>b&&a>c)
		{
			if(b>c)
			{
				System.out.println(c+" "+b+" "+a);
			}
			else if(b<c)
			{
				System.out.println(b+" "+c+" "+a);
			}
			else if(b==c)
			{
				System.out.println(b+" "+c+" "+a);
			}
		}
		else if(b>a&&b>c)
		{
			if(a>c)
			{
				System.out.println(c+" "+a+" "+b);
			}
			else if(a<c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			else if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			
		}
		else if(c>a&&c>b)
		{	
			if(a>b)
			{
				System.out.println(b+" "+a+" "+c);
			}
			else if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			}

		}
	}
} import java.util.Scanner; Scanner java.util class Main
{
	public static void main(String[] args)throws Exception
	{
		Scanner scan=new Scanner(System.in);
		
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=scan.nextInt();
		
		if(a>b&&a>c)
		{
			if(b>c)
			{
				System.out.println(c+" "+b+" "+a);
			}
			else if(b<c)
			{
				System.out.println(b+" "+c+" "+a);
			}
			else if(b==c)
			{
				System.out.println(b+" "+c+" "+a);
			}
		}
		else if(b>a&&b>c)
		{
			if(a>c)
			{
				System.out.println(c+" "+a+" "+b);
			}
			else if(a<c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			else if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			
		}
		else if(c>a&&c>b)
		{	
			if(a>b)
			{
				System.out.println(b+" "+a+" "+c);
			}
			else if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			}

		}
	}
} Main public static void main(String[] args)throws Exception
	{
		Scanner scan=new Scanner(System.in);
		
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=scan.nextInt();
		
		if(a>b&&a>c)
		{
			if(b>c)
			{
				System.out.println(c+" "+b+" "+a);
			}
			else if(b<c)
			{
				System.out.println(b+" "+c+" "+a);
			}
			else if(b==c)
			{
				System.out.println(b+" "+c+" "+a);
			}
		}
		else if(b>a&&b>c)
		{
			if(a>c)
			{
				System.out.println(c+" "+a+" "+b);
			}
			else if(a<c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			else if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			
		}
		else if(c>a&&c>b)
		{	
			if(a>b)
			{
				System.out.println(b+" "+a+" "+c);
			}
			else if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			}

		}
	} main {
		Scanner scan=new Scanner(System.in);
		
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=scan.nextInt();
		
		if(a>b&&a>c)
		{
			if(b>c)
			{
				System.out.println(c+" "+b+" "+a);
			}
			else if(b<c)
			{
				System.out.println(b+" "+c+" "+a);
			}
			else if(b==c)
			{
				System.out.println(b+" "+c+" "+a);
			}
		}
		else if(b>a&&b>c)
		{
			if(a>c)
			{
				System.out.println(c+" "+a+" "+b);
			}
			else if(a<c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			else if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			
		}
		else if(c>a&&c>b)
		{	
			if(a>b)
			{
				System.out.println(b+" "+a+" "+c);
			}
			else if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			}

		}
	} Scanner scan=new Scanner(System.in); scan new Scanner(System.in) int a=scan.nextInt(); a scan.nextInt() scan.nextInt scan int b=scan.nextInt(); b scan.nextInt() scan.nextInt scan int c=scan.nextInt(); c scan.nextInt() scan.nextInt scan if(a>b&&a>c)
		{
			if(b>c)
			{
				System.out.println(c+" "+b+" "+a);
			}
			else if(b<c)
			{
				System.out.println(b+" "+c+" "+a);
			}
			else if(b==c)
			{
				System.out.println(b+" "+c+" "+a);
			}
		}
		else if(b>a&&b>c)
		{
			if(a>c)
			{
				System.out.println(c+" "+a+" "+b);
			}
			else if(a<c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			else if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			
		}
		else if(c>a&&c>b)
		{	
			if(a>b)
			{
				System.out.println(b+" "+a+" "+c);
			}
			else if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			}

		} a>b&&a>c a>b a b a>c a c {
			if(b>c)
			{
				System.out.println(c+" "+b+" "+a);
			}
			else if(b<c)
			{
				System.out.println(b+" "+c+" "+a);
			}
			else if(b==c)
			{
				System.out.println(b+" "+c+" "+a);
			}
		} if(b>c)
			{
				System.out.println(c+" "+b+" "+a);
			}
			else if(b<c)
			{
				System.out.println(b+" "+c+" "+a);
			}
			else if(b==c)
			{
				System.out.println(b+" "+c+" "+a);
			} b>c b c {
				System.out.println(c+" "+b+" "+a);
			} System.out.println(c+" "+b+" "+a) System.out.println System.out System System.out c+" "+b+" "+a " " b c+" "+b+" "+a c " " b " " a if(b<c)
			{
				System.out.println(b+" "+c+" "+a);
			}
			else if(b==c)
			{
				System.out.println(b+" "+c+" "+a);
			} b<c b c {
				System.out.println(b+" "+c+" "+a);
			} System.out.println(b+" "+c+" "+a) System.out.println System.out System System.out b+" "+c+" "+a " " c b+" "+c+" "+a b " " c " " a if(b==c)
			{
				System.out.println(b+" "+c+" "+a);
			} b==c b c {
				System.out.println(b+" "+c+" "+a);
			} System.out.println(b+" "+c+" "+a) System.out.println System.out System System.out b+" "+c+" "+a " " c b+" "+c+" "+a b " " c " " a if(b>a&&b>c)
		{
			if(a>c)
			{
				System.out.println(c+" "+a+" "+b);
			}
			else if(a<c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			else if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			
		}
		else if(c>a&&c>b)
		{	
			if(a>b)
			{
				System.out.println(b+" "+a+" "+c);
			}
			else if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			}

		} b>a&&b>c b>a b a b>c b c {
			if(a>c)
			{
				System.out.println(c+" "+a+" "+b);
			}
			else if(a<c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			else if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			
		} if(a>c)
			{
				System.out.println(c+" "+a+" "+b);
			}
			else if(a<c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			else if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			} a>c a c {
				System.out.println(c+" "+a+" "+b);
			} System.out.println(c+" "+a+" "+b) System.out.println System.out System System.out c+" "+a+" "+b " " a c+" "+a+" "+b c " " a " " b if(a<c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			else if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			} a<c a c {
				System.out.println(a+" "+c+" "+b);
			} System.out.println(a+" "+c+" "+b) System.out.println System.out System System.out a+" "+c+" "+b " " c a+" "+c+" "+b a " " c " " b if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			} a==c a c {
				System.out.println(a+" "+c+" "+b);
			} System.out.println(a+" "+c+" "+b) System.out.println System.out System System.out a+" "+c+" "+b " " c a+" "+c+" "+b a " " c " " b if(c>a&&c>b)
		{	
			if(a>b)
			{
				System.out.println(b+" "+a+" "+c);
			}
			else if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			}

		} c>a&&c>b c>a c a c>b c b {	
			if(a>b)
			{
				System.out.println(b+" "+a+" "+c);
			}
			else if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			}

		} if(a>b)
			{
				System.out.println(b+" "+a+" "+c);
			}
			else if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			} a>b a b {
				System.out.println(b+" "+a+" "+c);
			} System.out.println(b+" "+a+" "+c) System.out.println System.out System System.out b+" "+a+" "+c " " a b+" "+a+" "+c b " " a " " c if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			} a<b a b {
				System.out.println(a+" "+b+" "+c);
			} System.out.println(a+" "+b+" "+c) System.out.println System.out System System.out a+" "+b+" "+c " " b a+" "+b+" "+c a " " b " " c if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			} a==b a b {
				System.out.println(a+" "+b+" "+c);
			} System.out.println(a+" "+b+" "+c) System.out.println System.out System System.out a+" "+b+" "+c " " b a+" "+b+" "+c a " " b " " c String[] args args
import java.util.Scanner;
class Main
{
	public static void main(String[] args)throws Exception
	{
		Scanner scan=new Scanner(System.in);
		
		int a=scan.nextInt();
		int b=scan.nextInt();
		int c=scan.nextInt();
		
		if(a>b&&a>c)
		{
			if(b>c)
			{
				System.out.println(c+" "+b+" "+a);
			}
			else if(b<c)
			{
				System.out.println(b+" "+c+" "+a);
			}
			else if(b==c)
			{
				System.out.println(b+" "+c+" "+a);
			}
		}
		else if(b>a&&b>c)
		{
			if(a>c)
			{
				System.out.println(c+" "+a+" "+b);
			}
			else if(a<c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			else if(a==c)
			{
				System.out.println(a+" "+c+" "+b);
			}
			
		}
		else if(c>a&&c>b)
		{	
			if(a>b)
			{
				System.out.println(b+" "+a+" "+c);
			}
			else if(a<b)
			{
				System.out.println(a+" "+b+" "+c);
			}
			else if(a==b)
			{
				System.out.println(a+" "+b+" "+c);
			}

		}
	}
}