I gdzie tu błąd jak wyświetla dobrze zawsze
package pl.codegym.task.task04.task0417;
/*
Masz parę?
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//tutaj wpisz swój kod
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
if (a==b && a!=c && b!=c)
{
System.out.println(a + " " + b);
}
else if (a==c && a!=b && a!=c)
{
System.out.println(a + " " + c);
}
else if (b==c && b!=a && c!=a)
{
System.out.println(b + " " + c);
}
else if (a==b && a==c && b==c)
{
System.out.println(a + " " + b + " " + c);
}
}
}