table = ('a'..'z').to_a

a = gets.chomp.split(//)

for i in 1...table.size do
  b = []
  for j in 0...a.size do
    index = table.index(a[j])
    unless index.nil?
      b << table[(index + i) % (table.size)]
    else
      b << a[j]
    end
  end

  decoded = b.join
  puts decoded if decoded.split(/\s+|\./).any? { |w| w =~ /(the|this|that)/ }
end