a,*b=$<.read.split x=0 b.uniq.map{|i|x+=(c=b.count i)%2+4*(c/2)} p x/4