h=Hash.new{0};gets;$/=' ';$<.map{|s|h[s]+=1};p h.count{|k,v|v<2}