gets; a = gets.split.map(&:to_i) (a.uniq).each do |i| a.delete(i) if a.count(i) > 1 end puts a.size