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;

public class Test
{
	public static void Main()
	{
		            string[] data = Console.ReadLine().Split();//????????\?????????
            int a = 0, b = 0, c = 0;
            a = int.Parse(data[0]);
            b = int.Parse(data[1]);
            c = int.Parse(data[2]);

            if (a < b)//a<?<?
            {
                if (b < c)//a<b<c
                {
                    Console.WriteLine("{0} {1} {2}", a, b, c);
                }
                else//a<c<b
                {
                    Console.WriteLine("{0} {1} {2}", a, c, b);
                }
            }

            else//a??\???<?<?
            {
                if (b < c)//b<?<?
                {
                    if (c < a)//b<c<a
                    {
                        Console.WriteLine("{0} {1} {2}",b,c,a);
                    }
                    else//b<a<c
                    {
                        Console.WriteLine("{0} {1} {2}", b, a, c);
                    }
                }
                else//c<?<?
                {
                    if (a < b)//c<a<b
                    {
                        Console.WriteLine("{0} {1} {2}",c,a,b);
                    }
                    else//c<b<a
                    {
                        Console.WriteLine("{0} {1} {2}", c, b, a);
                    }
                }
            }

	}
}