не проходит последний пункт я не могу понять почему
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 x = reader.readLine();
String y = reader.readLine();
String g = reader.readLine();
int a = Integer.parseInt(x);
int b = Integer.parseInt(y);
int c = Integer.parseInt(g);
if(a == b && b == c){ System.out.println(a + " " + b + " " + c);}
else if(a <= b && b <= c){
System.out.println(c + " " + b + " " + a);}
else if(a >= b && b <= c){
System.out.println(a + " " + c + " " + b);}
else if(b >= a && a <= c) {
System.out.println(b + " " + a + " " + c);}
else if(a >= b && b>=c){
System.out.println(a + " " + b + " "+ c);}
else if(b >= c && c >= a){
System.out.println(b + " " + c + " "+ a);}
else if(c >= a && a >= b){
System.out.println(c + " " + a + " "+ b);}
}
}