def decode_code(key)
  key = key % 26
  alph = ("a".."z").to_a.join
  trans_code = alph[key..-1] + alph[0..(key-1)]
  return [alph, trans_code]
end

def judge?(str)
  pattern = %w(the this that)

  pattern.each do |v|
    return true if str.include?(v)
  end
  return false
end

while line = gets
  line = line.chomp

  26.times do |i|
    decoded_line = line.tr(*decode_code(i) )
    if judge?(decoded_line)
      puts decoded_line
      break
    end
    puts :Error if i == 25
  end
end