I do not understand why it does not work
package fr.codegym.task.task04.task0420;
/*
Tri de trois nombres
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//écris ton code ici
BufferedReader l = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(l.readLine());
int b = Integer.parseInt(l.readLine());
int c = Integer.parseInt(l.readLine());
if(a>b && a>c || a == b && a>c){
System.out.print(a);}
else if(b>a && b>c){
System.out.print(b);}
else{
System.out.print(c);}
if(a>b && a<c || a<b && a>c || a == b && a>c){
System.out.print(" "+a);}
else if(b>a && b<c || b<a && b>c){
System.out.print(" "+b);}
else{
System.out.print(" " +c);}
if(a<b && a<c){
System.out.print(" "+a);}
else if(b<a && b<c){
System.out.print(" "+b);}
else{
System.out.print(" "+c);}
}
}