object Main extends App {
  val words = Seq("the", "this", "that")
  val caesar = Map(
    'a' -> 'b',
    'b' -> 'c',
    'c' -> 'd',
    'd' -> 'e',
    'e' -> 'f',
    'f' -> 'g',
    'g' -> 'h',
    'h' -> 'i',
    'i' -> 'j',
    'j' -> 'k',
    'k' -> 'l',
    'l' -> 'm',
    'm' -> 'n',
    'n' -> 'o',
    'o' -> 'p',
    'p' -> 'q',
    'q' -> 'r',
    'r' -> 's',
    's' -> 't',
    't' -> 'u',
    'u' -> 'v',
    'v' -> 'w',
    'w' -> 'x',
    'x' -> 'y',
    'y' -> 'z',
    'z' -> 'a',
    '.' -> '.',
    ' ' -> ' ',
    '\n' -> '\n'
  )
  def loop(input: String): String = {
    if (input.contains(words(0)) || input.contains(words(1)) || input.contains(words(2))) {
      print(input)
      input
    }
    else {
      loop(input map caesar)
    }
  }
  loop(readLine())
}