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 a = reader.readLine();
        int d = Integer.parseInt(a);
        String b = reader.readLine();
        int e = Integer.parseInt(b);
        String c = reader.readLine();
        int j = Integer.parseInt(c);

        if (d==e){
            System.out.println(d + " " + e);
        }
        if (d==e && d==j){
            System.out.println(d + " " +e + " "+j);
        }
    }
}