code is working for positive numbers but not working for negative numbers where is the problem
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(br.readLine());
int b = Integer.parseInt(br.readLine());
int c = Integer.parseInt(br.readLine());
if(a>=b&&b>=c)
{
System.out.println(a +" " +b +" " +c);
}
else if(b>=a&&a>=c)
{
System.out.println(b +" " +c +" " +a);
}
else if(c>=b&&b>=a)
{
System.out.println(c +" " +b +" " +a);
}
}
}