что не так?
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 s = reader.readLine();
int a = Integer.parseInt(s);
String x = reader.readLine();
int b = Integer.parseInt(x);
String y = reader.readLine();
int c = Integer.parseInt(y);
if(a == b){
System.out.println(a + " " + b);
}
else
if(a == c){
System.out.println(a + " " + c);
}
else
if(c == b){
System.out.println(c + " " + b);
}
else
if(a == b && b == c){
System.out.println(a + " " + b + " " + c);
}
}
}