Компилятор отрабатывает, программа выводит верные решения, но говорит, что не выполнено требование номер 3. В чем может быть проблема?
package com.javarush.task.pro.task03.task0305;
import java.util.Scanner;
/*
Три числа
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
Scanner console = new Scanner(System.in);
int a = console.nextInt(), b = console.nextInt(), c = console.nextInt();
boolean ab = (a == b), ac = (a == c), bc = (b == c);
if (ab) {
if (ac)
System.out.println(a + " " + b + " " + c);
else
System.out.println(a + " " + b);
}
else if (bc)
System.out.println(b + " " + c);
}
}