ango = gets.chomp ango.each_char.with_index(1) do|c,i| hi = 0 hi += 26 while (c.ord - i + hi < 'A'.ord) printf("%c", c.ord - i + hi) end puts ""