package com.javarush.task.pro.task03.task0305;
import java.util.Scanner;
/*
Три числа
*/
public class Solution {
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
int a = console.nextInt();
int b = console.nextInt();
int c = console.nextInt();
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);
}
}