ans = '' gets.chomp.chars.each_with_index do |e, i| te = ('A'..'Z').to_a[(('A'..'Z').to_a.index(e) - (i+1)) % 26] ans += te end puts ans