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