import java.util.*;


public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int c = sc.nextInt();
		
	    list.add(a);
	    list.add(b);
	    list.add(c);

	    Collections.sort(list);

	    int ans1 = list.get(0);
	    int ans2 = list.get(1);
	    int ans3 = list.get(2);

	    System.out.println(ans1 + " " + ans2 + " " + ans3);
	}

} import java.util.*; util.* java public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int c = sc.nextInt();
		
	    list.add(a);
	    list.add(b);
	    list.add(c);

	    Collections.sort(list);

	    int ans1 = list.get(0);
	    int ans2 = list.get(1);
	    int ans3 = list.get(2);

	    System.out.println(ans1 + " " + ans2 + " " + ans3);
	}

} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int c = sc.nextInt();
		
	    list.add(a);
	    list.add(b);
	    list.add(c);

	    Collections.sort(list);

	    int ans1 = list.get(0);
	    int ans2 = list.get(1);
	    int ans3 = list.get(2);

	    System.out.println(ans1 + " " + ans2 + " " + ans3);
	} main {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int c = sc.nextInt();
		
	    list.add(a);
	    list.add(b);
	    list.add(c);

	    Collections.sort(list);

	    int ans1 = list.get(0);
	    int ans2 = list.get(1);
	    int ans3 = list.get(2);

	    System.out.println(ans1 + " " + ans2 + " " + ans3);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc list.add(a) list.add list a list.add(b) list.add list b list.add(c) list.add list c Collections.sort(list) Collections.sort Collections list int ans1 = list.get(0); ans1 list.get(0) list.get list 0 int ans2 = list.get(1); ans2 list.get(1) list.get list 1 int ans3 = list.get(2); ans3 list.get(2) list.get list 2 System.out.println(ans1 + " " + ans2 + " " + ans3) System.out.println System.out System System.out ans1 + " " + ans2 + " " + ans3 " " ans2 ans1 + " " + ans2 + " " + ans3 ans1 " " ans2 " " ans3 String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int c = sc.nextInt();
		
	    list.add(a);
	    list.add(b);
	    list.add(c);

	    Collections.sort(list);

	    int ans1 = list.get(0);
	    int ans2 = list.get(1);
	    int ans3 = list.get(2);

	    System.out.println(ans1 + " " + ans2 + " " + ans3);
	}

} public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int c = sc.nextInt();
		
	    list.add(a);
	    list.add(b);
	    list.add(c);

	    Collections.sort(list);

	    int ans1 = list.get(0);
	    int ans2 = list.get(1);
	    int ans3 = list.get(2);

	    System.out.println(ans1 + " " + ans2 + " " + ans3);
	}

} Main
import java.util.*;


public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int c = sc.nextInt();
		
	    list.add(a);
	    list.add(b);
	    list.add(c);

	    Collections.sort(list);

	    int ans1 = list.get(0);
	    int ans2 = list.get(1);
	    int ans3 = list.get(2);

	    System.out.println(ans1 + " " + ans2 + " " + ans3);
	}

}