I write code but solution not work.
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 reader=new BufferedReader(new InputStreamReader(System.in));
String a = reader.readLine();
int aInt = Integer.parseInt(a);
String b = reader.readLine();
int bInt = Integer.parseInt(b);
String c = reader.readLine();
int cInt = Integer.parseInt(c);
if (aInt==bInt & bInt==cInt)
System.out.println(aInt+" "+bInt+" "+cInt);
else if (aInt==bInt)
System.out.println(aInt+" "+bInt );
if ( bInt==cInt )
System.out.println(bInt+" "+cInt );
if (aInt==cInt)
System.out.println(aInt+" "+cInt );
}
}