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)

using System;
using System.Collections.Generic; 

class Untitled
{
  static void Main(string[] args)
  {
	// ???????????´??°?????????????????????????????????????°??????????????????????????????????????????°?????????????????????????????????
    bool parsed = false;
    List <int> list = new List <int> ();
	string[] strs = null;
    string s = Console.ReadLine();
    if (!String.IsNullOrEmpty (s)) {
		strs = s.Split (' ');
		if (strs.Length == 3) {
		  	int val;
		  	int i = 0;
		  	parsed = Int32.TryParse (strs[i], out val);
			while (parsed) {
				list.Add (val);
				i++;
				if (i >= strs.Length)
				  break;
				parsed = Int32.TryParse (strs[i], out val);
			}
		}
    }
	list.Sort ();
	string strOutput = "";
	for (int i = 0; i < list.Count; i++) {
		if (i == list.Count - 1) {
			strOutput += list [i]; 
		} else {
			strOutput += list [i] + " ";
		}
	}
	System.Console.WriteLine (strOutput);
  }
}