#include <bits/stdc++.h>
using namespace std;
int main() {
  int a = 0, b = 0, c = 0, t;
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> t;
    a += t;
  }
  for (int i = 0; i < n - 1; i++) {
    cin >> t;
    b += t;
  }
  for (int i = 0; i < n - 2; i++) {
    cin >> t;
    c += t;
  }
  cout << a - b << endl << b - c << endl;
  return 0;
}
