Problem:
Sorting Three Numbers

Write a program which reads three integers, and prints them in ascending order.

Input

Three integers separated by a single space are given in a line.

Output

Print the given integers in ascending order in a line. Put a single space between two integers.

Constraints

1 ≤ the three integers ≤ 10000

Sample Input 1

3 8 1

Sample Output 1

1 3 8

Solution in C# (judge verdict: Accepted)

public partial class IntroductionToProgramming{
	public static void Main(){
		string[] line = System.Console.ReadLine().Split(' ');
		int a = int.Parse(line[0]);
		int b = int.Parse(line[1]);
		int c = int.Parse(line[2]);
		
		int m1;
		int m2;
		int m3;

		m1 = a <= b ? (a <= c ? a : c) : (b <= c ? b : c);
		m2 = a <= b ? (b <= c ? b : (a <= c ? c : a)) : (a <= c ? a : (b <= c ? c: b));
		m3 = a <= b ? (b <= c ? c : b) : (a <= c ? c : a);

		System.Console.WriteLine(m1.ToString() + " " + m2.ToString() + " " + m3.ToString());
	}
}