Привет!
Не проходит по условию, нужна помощь
package com.javarush.task.task04.task0441;
/*
Как-то средненько
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
int d = 0;
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
if (a!=b && b!=c && a!=c){
d = (a + b + c)/3;
}
if ((a==b) && (b==c)){
d=b;}
if ((a==b) || (a==c) || (c==b)){
if ((a==b) || (a==c)){
d=a;}
else
d= c;
}
System.out.println(d);
}
}