Не могу понять где в коде ошибка
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 st1 = reader.readLine();
String st2 = reader.readLine();
String st3 = reader.readLine();
int a = Integer.parseInt(st1);
int b = Integer.parseInt(st2);
int c = Integer.parseInt(st3);
if ((a == b) && (b == c) && (c == a))
System.out.println(a + " " + b + " " + c);
else if ((a != b) && (b == c) && (c == a))
System.out.println(b + " " + c);
else if ((a == b) && (b != c) && (c == a))
System.out.println(a + " " + c);
else if ((a == b) && (b == c) && (c != a))
System.out.println(a + " " + b);
else if ((a != b) && (b != c) && (c == a))
System.out.println(c);
else if ((a == b) && (b != c) && (c != a))
System.out.println(a);
else if ((a != b) && (b == c) && (c != a))
System.out.println(b);
}
}