3 и 5 пункт не выполняются
package com.javarush.task.task04.task0441;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
Как-то средненько
*/
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader pox = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(pox.readLine());
int a = Integer.parseInt(pox.readLine());
int b = Integer.parseInt(pox.readLine());
int c = (a+b+n)/3 ;
if (a!=b && b!=n){
System.out.println(c);
}
if (a==b && b!=n){
System.out.println(a);
}
if (a==n && n!=b){
System.out.println(n);
}
if (b==n && b!=a){
System.out.println(b);
}
if (a==b && b==n){
System.out.println(a);
}
}
}