// Arup Guha
// 6/5/2023
// Solution to Kattis Problem Cetvrta

using namespace std;
#include <iostream>

int diffVal(int a, int b, int c);

int main() {

    int x1,y1,x2,y2,x3,y3;

    cin >> x1 >> y1 >> x2 >> y2 >> x3 >> y3;

    // For each x and y, we want the unique value.
    cout << diffVal(x1,x2,x3) << " " << diffVal(y1,y2,y3) << endl;

    return 0;
}

// Precondition: Exactly 2 of a,b,c are equal.
// Postcondition: Returns the unique value of the 3.
int diffVal(int a, int b, int c) {
    if (a == b) return c;
    if (a == c) return b;
    return a;
}
