#!/usr/bin/ruby

str = gets.chomp
can = str.split(/\s|\./).select{|s|
        (3..4) === s.length
      }.map{|s|
        x = [s[0].ord]
        x += s.chars.map{|c| c.ord - x[0] }
      }.select{|x|
        [[-12, -19, 0], [-12, -11, -1], [-12, -15]].include? x[2..-1]
      }.first
puts str.chars.map{|x| (?a..?z) === x ? (x.ord + 116 - can[0]).chr : x }.join