s="$System.in".tokenize().sort();print s.sum{"$it "*(s.count(it)&1)}