_ = gets.chomp a = gets.chomp.split.map{|e| e.to_i}.tally cnt = 0 a.each do |_, v| cnt += v / 2 end puts cnt