import java.io.*;

public class Solution {
    public static void main(String[] args) throws Exception {
        //write your code here
        BufferedReader reader = new BufferedReader (new InputStreamReader(System.in));

        String fnum = reader.readLine();
        int num1 =  Integer.parseInt(fnum);

        String snum = reader.readLine();
        int num2 = Integer.parseInt(snum);

        String tnum = reader.readLine();
        int num3 = Integer.parseInt(tnum);

        if (num1==num2){
            System.out.println(num1+" "+num2);
        }
        else if(num1==num3){
            System.out.println(num1+" "+num3);
        }
        else if(num2==num3){
            System.out.println(num2+" "+num3);
        }

        else if((num1==num2 && num2==num3)){
            System.out.println(num1+""+num2+""+num3);
        }

    }
}