import java.util.*;
public class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> a = new ArrayList<Integer>();	
		for(int i = 0; i < 3; ++i)
		{
			a.add(sc.nextInt());
		}
		Collections.sort(a);
		for(int i = 0; i < 2; ++i)
		{
			System.out.printf("%d ", a.get(i));
		}
		System.out.println(a.get(2));
	}
} import java.util.*; util.* java public class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> a = new ArrayList<Integer>();	
		for(int i = 0; i < 3; ++i)
		{
			a.add(sc.nextInt());
		}
		Collections.sort(a);
		for(int i = 0; i < 2; ++i)
		{
			System.out.printf("%d ", a.get(i));
		}
		System.out.println(a.get(2));
	}
} Main public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> a = new ArrayList<Integer>();	
		for(int i = 0; i < 3; ++i)
		{
			a.add(sc.nextInt());
		}
		Collections.sort(a);
		for(int i = 0; i < 2; ++i)
		{
			System.out.printf("%d ", a.get(i));
		}
		System.out.println(a.get(2));
	} main {
		Scanner sc = new Scanner(System.in);
		List<Integer> a = new ArrayList<Integer>();	
		for(int i = 0; i < 3; ++i)
		{
			a.add(sc.nextInt());
		}
		Collections.sort(a);
		for(int i = 0; i < 2; ++i)
		{
			System.out.printf("%d ", a.get(i));
		}
		System.out.println(a.get(2));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> a = new ArrayList<Integer>(); a new ArrayList<Integer>() for(int i = 0; i < 3; ++i)
		{
			a.add(sc.nextInt());
		} int i = 0; int i = 0; i 0 i < 3 i 3 ++i ++i i {
			a.add(sc.nextInt());
		} {
			a.add(sc.nextInt());
		} a.add(sc.nextInt()) a.add a sc.nextInt() sc.nextInt sc Collections.sort(a) Collections.sort Collections a for(int i = 0; i < 2; ++i)
		{
			System.out.printf("%d ", a.get(i));
		} int i = 0; int i = 0; i 0 i < 2 i 2 ++i ++i i {
			System.out.printf("%d ", a.get(i));
		} {
			System.out.printf("%d ", a.get(i));
		} System.out.printf("%d ", a.get(i)) System.out.printf System.out System System.out "%d " a.get(i) a.get a i System.out.println(a.get(2)) System.out.println System.out System System.out a.get(2) a.get a 2 String[] args args public class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> a = new ArrayList<Integer>();	
		for(int i = 0; i < 3; ++i)
		{
			a.add(sc.nextInt());
		}
		Collections.sort(a);
		for(int i = 0; i < 2; ++i)
		{
			System.out.printf("%d ", a.get(i));
		}
		System.out.println(a.get(2));
	}
} public class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> a = new ArrayList<Integer>();	
		for(int i = 0; i < 3; ++i)
		{
			a.add(sc.nextInt());
		}
		Collections.sort(a);
		for(int i = 0; i < 2; ++i)
		{
			System.out.printf("%d ", a.get(i));
		}
		System.out.println(a.get(2));
	}
} Main
import java.util.*;
public class Main 
{
	public static void main(String[] args) 
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> a = new ArrayList<Integer>();	
		for(int i = 0; i < 3; ++i)
		{
			a.add(sc.nextInt());
		}
		Collections.sort(a);
		for(int i = 0; i < 2; ++i)
		{
			System.out.printf("%d ", a.get(i));
		}
		System.out.println(a.get(2));
	}
}