Could someone have a look at if for me please? :)
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 {
//write your code here
BufferedReader inRead = new BufferedReader(new InputStreamReader(System.in));
String aa = inRead.readLine();
String bb = inRead.readLine();
String cc = inRead.readLine();
int a = Integer.parseInt(aa);
int b = Integer.parseInt(bb);
int c = Integer.parseInt(cc);
if(a == b && b==c)
System.out.println(a+" "+b+" "+c);
else{
if(a == b)
System.out.println(a+" "+b);
if(b == c)
System.out.println(b+" "+c);
}
}
}