agh! please help! I can't seen to get it right!
package com.codegym.task.task04.task0417;
/*
Do we have a pair?
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader bu = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(bu.readLine());
int b = Integer.parseInt(bu.readLine());
int c = Integer.parseInt(bu.readLine());
if(a == b) {
System.out.print(a);
System.out.print(" " + b);
}
else if(b == c) {
System.out.print(b);
System.out.print(" " + c);
}
else if(a == c) {
System.out.print(a);
System.out.print(" " + c);
}
else if(a == b && b == c && a == c) {
System.out.print(a);
System.out.print(" " + b);
System.out.print(" " + c);
}
}
}