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 {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String reader1 = reader.readLine();
String reader2 = reader.readLine();
String reader3 = reader.readLine();
int input1 = Integer.parseInt(reader1);
int input2 = Integer.parseInt(reader2);
int input3 = Integer.parseInt(reader3);
if (input1 == input2 && input1 != input3){
System.out.println(input1);
System.out.println(input2);
}
else if (input1 == input3 && input1 != input2){
System.out.println(input1);
System.out.println(input3);
}
else if (input2 == input3 && input2 != input1){
System.out.println(input2);
System.out.println(input3);
}
else if ((input1 == input2) && (input1 == input3) && (input2 == input3)){
System.out.println(input1);
System.out.println(input2);
System.out.println(input3);
}
}
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 {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String reader1 = reader.readLine();
String reader2 = reader.readLine();
String reader3 = reader.readLine();
int input1 = Integer.parseInt(reader1);
int input2 = Integer.parseInt(reader2);
int input3 = Integer.parseInt(reader3);
if (input1 == input2 && input1 != input3){
System.out.println(input1);
System.out.println(input2);
}
else if (input1 == input3 && input1 != input2){
System.out.println(input1);
System.out.println(input3);
}
else if (input2 == input3 && input2 != input1){
System.out.println(input2);
System.out.println(input3);
}
else if ((input1 == input2) && (input1 == input3) && (input2 == input3)){
System.out.println(input1);
System.out.println(input2);
System.out.println(input3);
}
}
}