import java.util.Scanner;
public class Arrange
{
public static void main(String [] args)
{
Scanner input = new Scanner(System.in);
int number1;
int number2;
int number3;
int number4;
int number5;
System.out.print("Enter your first number: ");
number1= input.nextInt();
System.out.print("Enter your second number: ");
number2= input.nextInt();
System.out.print("Enter your third number: ");
number3= input.nextInt();
System.out.print("Enter your forth number: ");
number4= input.nextInt();
System.out.print("Enter your fifth number: ");
number5= input.nextInt();
if (number1 > number2)
if (number1 > number3)
if (number1 > number4)
if (number1 > number5)
if (number2 > number3)
if (number2 > number4)
if (number2 > number5)
if (number3 > number4)
if (number4 > number5)
System.out.printf("%d,%d,%d,%d,%d", number1, number2, number3, number4, number5);
else if (number2 > number3)
if (number2 > number4)
if (number2 > number5)
if (number2 > number1)
if (number3 > number4)
if (number3 > number5)
if (number3 > number1)
if (number4 > number5)
if (number4 > number1)
System.out.printf("%d,%d,%d,%d,%d", number2, number3, number4, number5, number1);
if (number3 > number4)
if (number3 > number5)
if (number3 > number1)
if (number3 > number2)
if (number4 > number5)
if (number4 > number1)
if (number4 > number2)
if (number5 > number1)
if (number5 > number2)
System.out.printf("%d,%d,%d,%d,%d", number3, number4, number5, number1, number2);
if (number4 > number5)
if (number4 > number1)
if (number4 > number2)
if (number4 > number3)
if (number5 > number1)
if (number5 > number2)
if (number5 > number3)
if (number1 > number2)
if (number1 > number3)
System.out.printf("%d,%d,%d,%d,%d", number4, number5, number1, number2, number3);
if (number5 > number1)
if (number5 > number2)
if (number5 > number3)
if (number5 > number4)
if (number1 > number2)
if (number1 > number3)
if (number1 > number4)
if (number2 > number3)
if (number2 > number4)
System.out.printf("%d,%d,%d,%d,%d", number5, number1, number2, number3, number4);
}
}