I am unsure of what this assignment wants from me. It says it wants the average of three numbers. But it also says if all numbers are equal display any one of them(ex: a = 5, b = 5 and c = 5 print a or b or even c)!?!? And it says if two of the 3 numbers are equal, display either of the two(a = 5, b = 5, c = 10 display a or b). Im so confused on what to do.

package com.codegym.task.task04.task0441;
/*
Somehow average
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
InputStream inputStream = System.in;
Reader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
String number1 = bufferedReader.readLine();
String number2 = bufferedReader.readLine();
String number3 = bufferedReader.readLine();
int a = Integer.parseInt(number1);
int b = Integer.parseInt(number2);
int c = Integer.parseInt(number3);
int average = (a + b + c)/3;
if (average >= 0){
System.out.println(average);
} else if (average <= 0){
System.out.println(average);
} else if (a == b || a == c && average >= 0){
System.out.println(a);
} else if (a == b || a == c && average <= 0) {
System.out.println(a);
} else if (b == c && average >= 0){
System.out.println(b);
} else if (b == c && average >= 0){
System.out.println(b);
} else if (a == b && a == c && b == c && average >= 0){
System.out.println(c);
} else if (a == b && a == c && b == c && average <= 0){
System.out.println(c);
}
}
}

middlenumber.