import os t=' O' s=t.find print"".join(['\n'if s(x)<0 else t[s(x)^s(y)]for x,y in zip(*os.read(0,999).split("\n\n"))])