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 br= new BufferedReader(new InputStreamReader(System.in));
        String s1 = br.readLine();
        int a = Integer.parseInt(s1);
        String s2 = br.readLine();
        int b= Integer.parseInt(s2);
        String s3 = br.readLine();
        int c = Integer.parseInt(s3);
        if(a==b )
        {
            System.out.println(a+" "+b);
        }
        else
           if(b==c)
        {
            System.out.println(b+" "+c);
        }
        else
          if(c==a)
        {
            System.out.println(c+" "+a);
        }
        else
          if(a==b && b==c && c==a)
        {
            System.out.println(a+" "+b+" "+c);
        }
         else
            if(a!=b && b!=c && c!=a)
        {
          System.out.println();
        }
    }
}