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;
using System.Text;


namespace ConsoleApplication6
{
    class Program
    {
        static void Main(string[] args)
        {
            //????????????????????¨??????????????????
            string[] s = Console.ReadLine().Split(' ');
            //???????????????a???b???c?????´??°?????????
            int a = int.Parse(s[0]);
            int b = int.Parse(s[1]);
            int c = int.Parse(s[2]);
            //???
            if (a > b)
            {
                int hako = b;
                b = a;
                a = hako;
             }
            if (b > c) 
            {
                int hako = c;
                c = b;
                b = hako;

             }
            if(a > b)
            {
                int hako = b;
                b = a;
                a = hako;
            }
            Console.WriteLine(a + " " + b + " " + c);
            ////??\??????????????????????????????
            //string a = Console.ReadLine()a;
            
            //int n = int.Parse(a);


            //int[] s = new int[13];
            //int[] h = new int[13];
            //int[] c = new int[13];
            //int[] d = new int[13];

            ////???????????§??°?????????
            //for (int i = 0; i < n; i++)
            //{
            //    //??????????????????????????????
            //    string[] ss = Console.ReadLine().Split(' ');
            //    //ss[0]???mark???
            //    string mark = ss[0];
            //    //ss[1]???rank???
            //    int rank = int.Parse(ss[1]);

            //    //??????mark???????????£?????? s[rank - 1]????????¨??????
                
            //    if (mark == "S")
            //    {
            
            //        s[rank - 1] = 1;
            //    }
            //    //??????mark???????????£?????? h[rank - 1]????????¨??????
                
            //    if (mark == "H")
            //    {
            //        h[rank - 1] = 1;

            //    }
            //    //??????mark???????????£?????? c[rank - 1]????????¨??????
                
            //    if (mark == "C")
            //    {
            //        c[rank - 1] = 1;

            //    }
            //    //??????mark???????????£?????? d[rank - 1]????????¨??????
            //    if (mark == "D")
            //    {
            //        d[rank - 1] = 1;
            //    }
            //}
            ////0?????????????????§??°?????????????????§????????£??????S??¨one+1?????????
            //for (int one = 0; one < 13; one++) 
            //{
            //    if (s[one] != 1)
            //    {
            //        Console.WriteLine("S "+(one+1));
            //    }

            //}
            ////0?????????????????§??°?????????????????§????????£??????S??¨two+1?????????
            //for (int two = 0; two < 13; two++)
            //{
            //    if (h[two] != 1)
            //    {
            //        Console.WriteLine("H " +(two+1));
            //    }
            //}
            ////0?????????????????§??°?????????????????§????????£??????S??¨three+1?????????
            //for (int three = 0; three < 13; three++)
            //{
            //    if (c[three] != 1)
            //    {
            //        Console.WriteLine("C " + (three+1));
            //    }
            //}
            ////0?????????????????§??°?????????????????§????????£??????S??¨four+1?????????
            //for (int four = 0; four < 13; four++)
            //{
            //    if (d[four] != 1)
            //    {
            //        Console.WriteLine("D " + (four+1));
            //    }
            //}


        }
    }
}