gets a=gets.split p a.count{|e|a.count(e)<2}