r=lambda:set(raw_input().split()) print' '.join(sorted(r()^r()))