#! /usr/bin/env python

import sys

txt = sys.stdin.read()
for s in sys.argv[1:]:
    a,b = s.split("=")
    txt = txt.replace("#%s#"%a.upper(), '"%s"' % b)
print txt

