Валидатор ругается. Не хочет выполнять третий пункт.
package com.javarush.task.task04.task0424;
/*
Три числа
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
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){}
else{
if (a!=b&&b==c)
System.out.println(1);
else if (b!=a&&a==c)
System.out.println(2);
else if (c!=a&&b==c)
System.out.println(3);
else
{}
}
}
}