My code seems to be giving the required screen output and satisfying all the conditions required but somehow the test fails....please help...what am I missing
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
String a = bufferedReader.readLine();
int A = Integer.parseInt(a);
String b = bufferedReader.readLine();
int B = Integer.parseInt(b);
String c = bufferedReader.readLine();
int C = Integer.parseInt(c);
if((A>=B && A>=C)&&(B>=C)){
System.out.print(A+" ");
System.out.print(B+" ");
System.out.print(C);
}
else if((B>=A && B>=C)&&(A>=C)){
System.out.print(B+" ");
System.out.print(A+" ");
System.out.print(C);
}
else if ((C>=A && C>=B)&&(A>=B)){
System.out.print(C+" ");
System.out.print(A+" ");
System.out.print(B);
}//write your code here
}
}