S=gets.chomp S.length.times{|i| S[i]=((S[i].ord-"A".ord+26-(i+1)%26)%26+"A".ord).chr } puts S