что не так с кодом, почему не выходит ?
package com.javarush.task.task04.task0420;
import java.io.*;
/*
Сортировка трех чисел
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s1 = reader.readLine();
String s2 = reader.readLine();
String s3 = reader.readLine();
int a = Integer.parseInt(s1);
int b = Integer.parseInt(s2);
int d = Integer.parseInt(s3);
if ( a > b && a > d)
{
if ( b > d)
System.out.println(a+" "+b+" "+d);
else
System.out.println(a+" "+d+" "+b);}
if ( b > a && b > d)
{
if ( a > d)
System.out.println(b+" "+a+" "+d);
else
System.out.println(b+" "+d+" "+a);}
if ( d > b && d > a)
{
if ( b > a)
System.out.println(d+" "+b+" "+a);
else
System.out.println(d+" "+a+" "+b);}
//напишите тут ваш код
}
}