
import scala.util.control.Breaks
object Main extends App {
  val b = Breaks

  b.breakable {
    for (line <- io.Source.stdin.getLines()) {
      if (line.isEmpty) {b.break()}

      val abc = ('a' to 'z').toArray
      for (shift <- 0 until 26) {
        val mapabc = (for (i <- 0 until 26) yield abc(i) -> abc((i + shift) % 26)).toMap
        val decstr = line.map(c => {
          if (abc.contains(c)) mapabc(c) else c
        })
        val pdecstrs = decstr.replace('.',' ').split(' ')

        if (pdecstrs.contains("the") || pdecstrs.contains("this") || pdecstrs.contains("that")) {
          println(decstr)
        }
      }
    }
  }
}
