package com.javarush.task.task04.task0417;
/*
Существует ли пара?
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a1 = reader.readLine();
String b1 = reader.readLine();
String c1 = reader.readLine();
int a = Integer.parseInt(a1);
int b = Integer.parseInt(b1);
int c = Integer.parseInt(c1);
if (a == b) {
System.out.println(a + " " + b);
}
if (a == c) {
System.out.println(a + " " + c);
}
if (c == b) {
System.out.println(c + " " + b);
}
if ((a == b) && (b == c) && (c == a)) {
System.out.println(a + " " + b + " " + c);
}
if ((a != b) && (b != c) && (a != c)) {
System.out.println(" ");
}
}
}
БЛИН, ДА ЧТО НЕ ТАК ТО? ПОСЛЕДНИЕ ЗАДАЧ 15 ОЧЕНЬ МНОГО ВРЕМЕНИ ТРАЧУ И НИФИГА НЕ ПОНИМАЮ В ЧЁМ ОШИБКИpackage com.javarush.task.task04.task0417;
/*
Существует ли пара?
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String a1 = reader.readLine();
String b1 = reader.readLine();
String c1 = reader.readLine();
int a = Integer.parseInt(a1);
int b = Integer.parseInt(b1);
int c = Integer.parseInt(c1);
if (a == b) {
System.out.println(a + " " + b);
}
if (a == c) {
System.out.println(a + " " + c);
}
if (c == b) {
System.out.println(c + " " + b);
}
if ((a == b) && (b == c) && (c == a)) {
System.out.println(a + " " + b + " " + c);
}
if ((a != b) && (b != c) && (a != c)) {
System.out.println(" ");
}
}
}