input = STDIN.read.split("\n").map(&:chomp)

ret = 0

input[0].split.select { |e| e.length == 3 }.each do |word|
  25.times do |i|
    next if word.bytes.map { |byte| ((byte + i - 96) % 27 + 96).chr }.join != 'the'
    ret = i
    break
  end
  break
end

input.each do |line|
  puts line.split.map { |word|
    word.bytes.map do |e|
      if e == 46
        e.chr
      else
        ((e + ret - 96) % 27 + 96).chr
      end
    end.join
  }.join(' ')
end