gets;puts gets.split.group_by{|i|i}.values.select{|i|i.size == 1}.size