gets.chomp.split('').each_with_index{|s,i|print ""<<(s.ord-66-i)%26+65}
print "\n"