require 'set' #set1.include? n=STDIN.gets.to_i as=STDIN.gets.split(" ") set1=Set.new() set2=Set.new() as.each do |e| if set2.include?(e) next end if set1.include?(e) set1.delete(e) set2.add(e) else set1.add(e) end end puts set1.size