Can someone help me with what is wrong in this code?

package com.codegym.task.task04.task0441;
/*
Somehow average
*/
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)&(c==a))
{
System.out.print(a);
}
else if((a==b)&(a!=c))
{
System.out.print(b);
}
else if((a==c)&(a!=b))
{
System.out.print(c);
}
else if((b==c)&(b!=a))
{
System.out.print(b);
}
else if((a!=b)&(b!=c)&(c!=a))
{
System.out.print(b);
}
}
}

c) a is middle if (b>a&& b<c || b<a&& b>c) b is middle if (c>a&& cb) then c is middle if (a==b && b!=c || a==b&&b==c) then print b else print c