donno what's wrong in this program
I can't figure it out help!
package com.codegym.task.task04.task0420;
/*
Sorting three numbers
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader bon = new BufferedReader(new InputStreamReader(System.in));
int small=0;
int middle=0;
int big=0;
int a = Integer.parseInt(bon.readLine());
int b = Integer.parseInt(bon.readLine());
int c = Integer.parseInt(bon.readLine());
if((a<b) && (a<c)){
small=a;
}
else
if((b<a) && (b<c)){
small=b;
}
else
if((c<a) && (c<b)){
small=c;
}
else
if((a>b) && (a>c)){
big=a;
}
else
if((b>a) && (b>c)){
big=b;
}
else
if((c>a) && (c>b)){
big=c;
}
if ((a == big) && (b == small))
{
middle = c;
}
else {
middle = b;
}
if ((b == big) && (a == small)){
middle = c ;
}
else
{
middle = a;
}
if ((c == big) && (a == small)){
middle = b;
}
else
{
middle = a;
}
System.out.println(a + " " +b+ " " +c);//write your code here
}
}