The last condition is not met
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 reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
if (a == b && b == c) {
System.out.println(a);
} else if (a >= b && a >= c) {
if (b >= c) {
System.out.println(b);
} else
System.out.println(c);
} else if (b >= a && b >= c) {
if (a >= c) {
System.out.println(a);
} else
System.out.println(c);
} else if (c >= a && c >= b) {
if (a >= b) {
System.out.println(a);
} else
System.out.println(b);
}
}
}