#include <iostream>
#include <set>
#include <vector>
#include <algorithm>
int main() {
std::vector<int> firstSet, secondSet, mergedSet;
int num;
while (std::cin >> num) {
firstSet.push_back(num);
if (std::cin.get() == '\n') {
break;
}
}
while (std::cin >> num) {
secondSet.push_back(num);
if (std::cin.get() == '\n') {
break;
}
}
std::sort(firstSet.begin(), firstSet.end());
std::sort(secondSet.begin(), secondSet.end());
std::set_symmetric_difference(firstSet.begin(), firstSet.end(), secondSet.begin(), secondSet.end(), std::back_inserter(mergedSet), std::greater<int>());
for (int i = 0; i < mergedSet.size(); ++i) {
std::cout << mergedSet[ i] << " ";
}
return 0;
}