Не проходит последний пункт, подскажите please)
package com.javarush.task.task04.task0417;
import java.io.*;
/*
Существует ли пара?
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String sA = reader.readLine();
int a = Integer.parseInt(sA);
String sB = reader.readLine();
int b = Integer.parseInt(sB);
String sC = reader.readLine();
int c = Integer.parseInt(sC);
if (a == b && a == c && b == c) {
System.out.println(a + " " + b + " " + c);
}
else if (a != b && b != c && a != c) {
System.out.println(" ");
}
else if (a == b && a != c && b != c) {
System.out.println(a + " " + b);
}
else if (a == c && b != c && a != b) {
System.out.println(a+ " " + c);
}
else {
System.out.println(b + " " + c);
}
}
}