while line = gets
  arr = line.split
  offset = 0
  arr.each{|word|
    ch = word.split("").map(&:ord)
    ch.pop if ch[-1] == 46
    flag = false
    if ch.size == 3 || ch.size == 4 then
      if ch[0] - ch[1] == 12 then #th
        if ch.size == 3 && ch[0] - ch[2] == 15 then #the
          flag = true
        elsif ch.size == 4 then
          if ch[0] - ch[2] == 11 && ch[0] - ch[3] == 1 then #this
            flag = true
          elsif ch[0] - ch[2] == 19 && ch[0] - ch[3] == 0 then #that
            flag = true
          end
        end
      end
    end
    if flag
      offset = ch[0] - 116
      break
    end
  }
  arr = line.split("").map(&:ord)
  arr.each{|n|
    case n
    when 32
      print " "
    when 46
      print "."
    else
      print "#{(n-offset).chr}"
    end
  }
  puts
end