gets.chomp.each_char.with_index(1) do |c, i| print (65 + (c.ord - 65 - i) % 26).chr end puts