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: Wrong Answer)

using System;

	
	public class Class1
	{
		static void Main()
		{
		 string abc=Console.ReadLine();
		 string[] abcArray=abc.Split();
		 int a=int.Parse(abcArray[0]);
		 int b=int.Parse(abcArray[1]);
		  int c=int.Parse(abcArray[2]);
		  int s=0;
		  
		  if(a<b)
		 {
		  	if(a>c)//c<a<b
		  	{
		  		s=a;
		  		a=c;
		  		c=b;
		  		b=s;
		  		
		  	}
		  	else if(c<b)//a<c<b
		  	{
		  		s=c;
		  		c=b;
		  		b=s;
		  		
		  	}
		  	
		  	
		 }
		  else if(a>b)//b<a
		  {
		  	if(c<b)//c<b<a
		  	{
		  		s=c;
		  		c=a;
		  		a=s;
		  		
		  	}
		  	else if(a<c)//b<a<c
		  	{
		  		s=b;
		  		b=a;
		  		a=s;
		  	
		  	}
		  	else //b<c<a
		  	{
		  		s=b;
		  		b=c;
		  		c=a;
		  		a=s;
		  		
		  		
		  	}
		  		
		  }
		  
		  	
		 
		 	Console.WriteLine("{0}{2,1}{2,1}",a,b,c);
		 
		
		}
	}