while line = gets
  arr = line.split
  offset = 0
  arr.each{|word|
    next if word.size < 3 || word.size > 4
    ch = word.split("").map(&:ord)
    offset = ch[0] - 116
    str = ""
    ch.size.times{|i|
      if ch[i] == 32 || ch[i] == 46 then
        str << ch[i].chr
      else
        str << (ch[i]-offset).chr
      end
    }
    break if str == "the" || str == "this" || str == "that"
  }
  arr = line.chomp.split("").map(&:ord)
  arr.each{|n|
    case n
    when 32
      print " "
    when 46
      print "."
    else
      print "#{(n-offset).chr}"
    end
  }
  puts
end