def convert_chars_to_num(chars)
  nums = []
  chars.split('').each do |char|
    nums << convert_char_to_num(char)
  end
  num2 = []
  nums.each_with_index { |_, i| num2[i] = nums[i] - nums[0] }
  return num2
end

def convert_char_to_num(char)
  ('a'..'z').to_a.each_with_index do |al, i|
    return i if char == al
  end
end

def get_dif_num(char1, char2)
  num1 = convert_char_to_num(char1)
  num2 = convert_char_to_num(char2)
  num1 - num2
end

def is_match_sequence?(str1, str2)
  dif1 = convert_chars_to_num(str1)
  dif2 = convert_chars_to_num(str2)
  dif1 == dif2
end

def decode_char(char, n)
  cn = convert_char_to_num(char)
  raise 'invalid cn' if cn.nil?
  ('a'..'z').to_a[cn + n]
end

def decode_chars(str, n)
  str.split(//).each_with_index do |char, i|
    next if char !~ /[a-z]/
    str[i] = decode_char(char, n)
  end
  return str
end

while gets do
  sentence = $_.chomp

  n = nil
  sentence.split(/\s/).each do |str|
    if str.length == 3 and is_match_sequence?('the', str)
      n = get_dif_num('t', str.split('')[0])
      break
    elsif str.length == 4 and is_match_sequence?('this', str)
      n = get_dif_num('t', str.split('')[0])
      break
    elsif str.length == 4 and is_match_sequence?('that', str)
      n = get_dif_num('t', str.split('')[0])
      break
    end
  end
  raise "no n str:#{sentence}" if n.nil?
  puts decode_chars(sentence, n)
end