?
package com.javarush.task.task04.task0417;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
import java.io.Reader;
/*
Существует ли пара?
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String aa = reader.readLine();
String bb = reader.readLine();
String cc = reader.readLine();
int a = Integer.parseInt(aa);
int b = Integer.parseInt(bb);
int c = Integer.parseInt(cc);
if (a == b)
System.out.println(a + " " + b);
if (a == c)
System.out.println(a + " " + c);
if (b == c)
System.out.println(b + " " + c);
else if ((a == b) && (a == c) && (c == b))
System.out.println(a + " " + b + " " + c);
}
}