/******************************************************************
 * Program SortThreeInts
 *
 * Programmer: Tyler Johnson
 *
 * Due Date: N/A

 *
 * COMP 110-001        Instructor: Tyler Johnson
 *
 * Description: The program prints three integers entered by the
 *				user in increasing order
 *
 * Input: Three distinct integers a,b,c
 *
 * Output: a,b,c in increasing order
 *
 ******************************************************************/

import java.util.Scanner;

public class SortThreeInts  {

	public static void main(String[] args)  {
		
		int a = 0, b = 0, c = 0;
		
		Scanner keyboard = new Scanner(System.in);
		
		//Ask user for three integers, a,b,c
		System.out.println("Enter three distinct integers separated by a space.");
		
		a = keyboard.nextInt();
		b = keyboard.nextInt();
		c = keyboard.nextInt();

		//Determine which of a,b,c is the smallest
		if(a < b && a < c)  {
			//a is the smallest
			
			//Determine which of the remaining two is smaller
			if(b < c)  {
				//a < b < c
				System.out.println(a + " " + b + " " + c);
			}
			else  {
				//a < c < b
				System.out.println(a + " " + c + " " + b);
			}
		}
		else if(b < a && b < c)  {
			//b is the smallest
			
			//Determine which of the remaining two is smaller
			if(a < c)  {
				//b < a < c
				System.out.println(b + " " + a + " " + c);
			}
			else  {
				//b < c < a
				System.out.println(b + " " + c + " " + a);
			}
		}
		else  {
			//c is the smallest
			
			//Determine which of the remaining two is smaller
			if(a < b)  {
				//c < a < b
				System.out.println(c + " " + a + " " + c);
			}
			else  {
				//c < b < a
				System.out.println(c + " " + b + " " + a);
			}
		}
	}
}