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