alpha=Array.new(26,0) gets.chars.map{|e|e.to_i(36)-10}.each{|e|alpha[e]+=1} p [alpha[19],alpha[17],alpha[4]/2].min