package myhoge

import java.util.Scanner

object Main {
  def main(args: Array[String]): Unit = {
    val charSet = ('a' to 'z').toArray
    val keyword = Set("the", "this", "that")
    val sc = new Scanner(System.in)
    var line = ""
    //    val line = "xlmw mw xli tmgxyvi xlex m xsso mr xli xvmt."

    (1 to 20).foreach { _ =>
      if (!sc.hasNext) return

      line = sc.nextLine

      (0 to 25).foreach { diff =>
        val result = line.map { ch =>
          val idx = charSet.indexOf(ch)

          if (idx < 0) {
            ch
          } else {
            if (idx - diff < 0) {
              (ch - diff + charSet.length).toChar
            } else {
              (ch - diff).toChar
            }
          }
        }.toString

        if (result.split(" ").exists(keyword.contains)) {
          println(result)
        }
      }
    }
  }
}