#include <algorithm>
#include <iostream>
#include <iterator>
#include <vector>
using namespace std;

int main() {
	int nm;
	cin >> nm;
	vector<int> a(nm), c;
	for (int& i : a) cin >> i;
	cin >> nm;
	vector<int> b(nm);
	for (int& i : b) cin >> i;
	set_symmetric_difference(a.begin(), a.end(), b.begin(), b.end(), inserter(c, c.end()));
	for (int& i : c) cout << i << endl;
}
