/**
*    author:  shu8Cream
*    created: 06.03.2021 11:57:11
**/

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i=0; i<(n); i++)
#define all(x) (x).begin(), (x).end()
using ll = long long;
using P = pair<int,int>;
using vi = vector<int>;
using vvi = vector<vi>;

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    int n;
    cin >> n;
    vi x(n),y(n),r(n);
    rep(i,n) cin >> x[i] >> y[i] >> r[i];
    rep(i,n){
        printf("%d %d %d %d\n", x[i],y[i],x[i]+1,y[i]+1);
    }
}
#include <bits/stdc++.h>
using namespace std;

int main() {
  int N, M;
  cin >> N >> M;
  
  vector<int> A(N), B(M);
  for (int& x : A) cin >> x;
  for (int& x : B) cin >> x;
  
  vector<int> C;
  set_symmetric_difference(A.begin(), A.end(),
                           B.begin(), B.end(),
                           back_inserter(C));

  for (int x : C) cout << x << ' ';
}
