if no number match than don't display anything.
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));
int n1 = Integer.parseInt(reader.readLine());
int n2 = Integer.parseInt(reader.readLine());
int n3 = Integer.parseInt(reader.readLine());
boolean x = isPair( n1, n2, n3);
if(x==false)
{
System.out.println();
}
else if((n1==n2) && (n1==n3))
{
System.out.println(n1+" "+n2+" "+n3);
}
else if ((n1==n2) && (n1!=n3))
{
System.out.println(n1+" "+n2);
}
else if((n1==n3) && (n1!=n2))
{
System.out.println(n1+" "+n3);
}
else if((n2==n3) && (n1!=n2))
{
System.out.println(n2+" "+n3);
}
}
public static boolean isPair(int a,int b, int c)
{
return ((a==b)||(a==c)||(b==c));
}
}