import java.util.Scanner;


public class Main {
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int[] a = new int[3];
		a[0] = scanner.nextInt();
		a[1] = scanner.nextInt();
		a[2] = scanner.nextInt();
		
		for(int i=0; i<a.length-1; i++)
		{
			for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			}
		}
		
		for(int i=0; i<a.length; i++)
		{
			System.out.print(a[i]+(i<a.length-1?" ":"\n"));
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int[] a = new int[3];
		a[0] = scanner.nextInt();
		a[1] = scanner.nextInt();
		a[2] = scanner.nextInt();
		
		for(int i=0; i<a.length-1; i++)
		{
			for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			}
		}
		
		for(int i=0; i<a.length; i++)
		{
			System.out.print(a[i]+(i<a.length-1?" ":"\n"));
		}
	}
} Main public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int[] a = new int[3];
		a[0] = scanner.nextInt();
		a[1] = scanner.nextInt();
		a[2] = scanner.nextInt();
		
		for(int i=0; i<a.length-1; i++)
		{
			for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			}
		}
		
		for(int i=0; i<a.length; i++)
		{
			System.out.print(a[i]+(i<a.length-1?" ":"\n"));
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		
		int[] a = new int[3];
		a[0] = scanner.nextInt();
		a[1] = scanner.nextInt();
		a[2] = scanner.nextInt();
		
		for(int i=0; i<a.length-1; i++)
		{
			for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			}
		}
		
		for(int i=0; i<a.length; i++)
		{
			System.out.print(a[i]+(i<a.length-1?" ":"\n"));
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int[] a = new int[3]; a new int[3] 3 a[0] = scanner.nextInt() a[0] a 0 scanner.nextInt() scanner.nextInt scanner a[1] = scanner.nextInt() a[1] a 1 scanner.nextInt() scanner.nextInt scanner a[2] = scanner.nextInt() a[2] a 2 scanner.nextInt() scanner.nextInt scanner for(int i=0; i<a.length-1; i++)
		{
			for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			}
		} int i=0; int i=0; i 0 i<a.length-1 i a.length-1 a.length a a.length 1 i++ i++ i {
			for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			}
		} {
			for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			}
		} for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			} int j=1; int j=1; j 1 j<a.length j a.length a a.length j++ j++ j {
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			} {
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			} if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				} a[i] > a[j] a[i] a i a[j] a j {
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				} int buf = a[i]; buf a[i] a i a[i] = a[j] a[i] a i a[j] a j a[j] = buf a[j] a j buf for(int i=0; i<a.length; i++)
		{
			System.out.print(a[i]+(i<a.length-1?" ":"\n"));
		} int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
			System.out.print(a[i]+(i<a.length-1?" ":"\n"));
		} {
			System.out.print(a[i]+(i<a.length-1?" ":"\n"));
		} System.out.print(a[i]+(i<a.length-1?" ":"\n")) System.out.print System.out System System.out a[i]+(i<a.length-1?" ":"\n") a[i] a i (i<a.length-1?" ":"\n") i<a.length-1 i a.length-1 a.length a a.length 1 " " "\n" String[] args args public class Main {
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int[] a = new int[3];
		a[0] = scanner.nextInt();
		a[1] = scanner.nextInt();
		a[2] = scanner.nextInt();
		
		for(int i=0; i<a.length-1; i++)
		{
			for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			}
		}
		
		for(int i=0; i<a.length; i++)
		{
			System.out.print(a[i]+(i<a.length-1?" ":"\n"));
		}
	}
} public class Main {
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int[] a = new int[3];
		a[0] = scanner.nextInt();
		a[1] = scanner.nextInt();
		a[2] = scanner.nextInt();
		
		for(int i=0; i<a.length-1; i++)
		{
			for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			}
		}
		
		for(int i=0; i<a.length; i++)
		{
			System.out.print(a[i]+(i<a.length-1?" ":"\n"));
		}
	}
} Main
import java.util.Scanner;


public class Main {
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		
		int[] a = new int[3];
		a[0] = scanner.nextInt();
		a[1] = scanner.nextInt();
		a[2] = scanner.nextInt();
		
		for(int i=0; i<a.length-1; i++)
		{
			for(int j=1; j<a.length; j++)
			{
				if(a[i] > a[j])
				{
					int buf = a[i];
					a[i] = a[j];
					a[j] = buf;
				}
			}
		}
		
		for(int i=0; i<a.length; i++)
		{
			System.out.print(a[i]+(i<a.length-1?" ":"\n"));
		}
	}
}