The checker says my numbers aren't in descending order even though they are. What's going on? Code below: public class Solution { public static int maxi(int f, int s) { if (f>s) return f; else return s; } public static int mini(int f, int s) { if (f>s) return s; else return f; } public static void main(String[] args) throws Exception { //write your code here int a = Integer.parseInt((new BufferedReader(new InputStreamReader (System.in ))).readLine() ); int b = Integer.parseInt((new BufferedReader(new InputStreamReader (System.in ))).readLine() ); int c = Integer.parseInt((new BufferedReader(new InputStreamReader (System.in ))).readLine() ); if (a>b && a>c) System.out.println(a+" "+maxi(b, c)+" "+mini(b, c) ); else if (b>c && b>a) System.out.println(b+" "+maxi(a, c)+" "+mini(a, c)); else System.out.println(c+" "+maxi(a, b)+" "+mini(b, a)) ; } }