def f(str)
    case str
    when 'D'..'Z'
        [str.unpack("C")[0]-3].pack("C")
    when 'A'
        'X'
    when 'B'
        'Y'
    when 'C'
        'Z'
    end
end

puts gets.chomp.split(//).map{|c| f c}.join