s = gets.chomp.split("") a =[*a..z] b ="" s.each_index{ |i| b<< a(a.index(s[i])-(i+1))} p b