package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int num1 = Integer.parseInt(br.readLine());
int num2 = Integer.parseInt(br.readLine());
int num3 = Integer.parseInt(br.readLine());
if (num1 > num2)
{
if (num2 > num3)
{
System.out.println(num1+" "+num2+" "+num3);
}
else if (num3 > num2)
{
System.out.println(num1+" "+num3+" "+num2);
}
}
else if (num2 > num1)
{
if (num1 > num3)
{
System.out.println(num2+" "+num1+" "+num3);
}
else if (num3 > num1)
{
System.out.println(num2+" "+num3+" "+num1);
}
}
else if (num3 > num1)
{
if (num1 > num2)
{
System.out.println(num3+" "+num1+" "+num2);
}
else if (num2 > num1)
{
System.out.println(num3+" "+num2+" "+num1);
}
}
}
}
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int num1 = Integer.parseInt(br.readLine());
int num2 = Integer.parseInt(br.readLine());
int num3 = Integer.parseInt(br.readLine());
if (num1 > num2)
{
if (num2 > num3)
{
System.out.println(num1+" "+num2+" "+num3);
}
else if (num3 > num2)
{
System.out.println(num1+" "+num3+" "+num2);
}
}
else if (num2 > num1)
{
if (num1 > num3)
{
System.out.println(num2+" "+num1+" "+num3);
}
else if (num3 > num1)
{
System.out.println(num2+" "+num3+" "+num1);
}
}
else if (num3 > num1)
{
if (num1 > num2)
{
System.out.println(num3+" "+num1+" "+num2);
}
else if (num2 > num1)
{
System.out.println(num3+" "+num2+" "+num1);
}
}
}
}