s=gets.chomp.split("");a=[*"A".."Z"];b="" s.each_index{|i|b<