gets p gets.split.group_by(&:to_i).map{|k,v|v.size>1?0:1}.sum