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 JAVA (judge verdict: WA: Presentation Error)

import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		Scanner stdin=new Scanner(System.in);
		 int number1=stdin.nextInt();
		 int number2=stdin.nextInt();
	     int number3=stdin.nextInt();
		    if ((number1>number2 &&number1>number3))
        {if(number2>number3){
                System.out.print(number3+ " " + number2+ " " + number1);
            }else System.out.print(number2+ " " + number3+ " " + number1);}
        else if ((number2>number1&&number2 >number3)){
            if(number1>number3){
                System.out.print(number3+ " " + number1 + " " + number1);}
            else{
                System.out.print(number1 + " " + number3 + " " + number2);
                }}
        else if ((number3 > number1 && number3 > number2)){
            if(number1 > number2){
                System.out.print(number2 + " " + number1 + " " + number3); }
            else
                System.out.print(number1 + " " + number2 + " " + number3);
            }
	    }
	    }