h=Hash.new 0;gets.chomp.chars{|c|h[c]+=1} if h.any?{|k,v|k