s=gets.chomp a="" for i in 0...s.size do c=s[i]; n=((c.ord-40-i)%26+65).chr a=a+n end puts a