s = gets.chomp
al = ('A'..'Z').to_a

puts s.split('').map.with_index { |c, i| al[(al.index(c) - i - 1) % 26] }.*''