#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#define int long long
using namespace std;
signed main() {
	vector<int>v; int n, p;
	cin >> n;
	for (int i = 0; i < n; i++) { cin >> p; v.push_back(p); }
	cin >> n;
	for (int i = 0; i < n; i++) { cin >> p; v.push_back(p); }
	sort(v.begin(), v.end());
	for (int i = 0; i < v.size(); i++) {
		if (i + 1 < v.size() && v[i] == v[i + 1])i++;
		else cout << v[i] << endl;
	}
}
