s = gets.chomp
alphabets = [("A".."Z").to_a, (0..25).to_a].transpose.to_h
res = ""
s.split("").each_with_index do |c, i|
  res += alphabets.key((alphabets[c] - (i + 1)) % 26)
end
puts res