#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> a(n), b(n - 1), c(n - 2);
  for (long long i = 0; i < n; i++) cin >> a[i];
  for (long long i = 0; i < n - 1; i++) cin >> b[i];
  for (long long i = 0; i < n - 2; i++) cin >> c[i];
  sort(a.begin(), a.end());
  sort(b.begin(), b.end());
  sort(c.begin(), c.end());
  for (long long i = 0; i < n; i++) {
    if (i == n - 1) {
      cout << a[i] << endl;
      break;
    }
    if (b[i] != a[i]) {
      cout << a[i] << endl;
      break;
    }
  }
  for (long long i = 0; i < n - 1; i++) {
    if (i == n - 2) {
      cout << b[i] << endl;
      break;
    }
    if (b[i] != c[i]) {
      cout << b[i] << endl;
      break;
    }
  }
  return 0;
}
