i m pretty sure its right. but it didnt pass the testing
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 s1 = reader.readLine();
String s2 = reader.readLine();
String s3 = reader.readLine();
int a = Integer.parseInt(s1);
int b = Integer.parseInt(s2);
int c = Integer.parseInt(s3);
if(a == b){
System.out.println(a+" "+b);
}
else if(b == c){
System.out.println(b+" "+c);
}
else if(c == a){
System.out.println(c+" "+a);
}
else if((a==b) && (b==c)){
System.out.println(a+" "+b+" "+c);
}
}
}