############# import os for l in zip(*os.sys.stdin):L=`l`.count;os.write(1,chr(ord(l[0])-L("-")+L("+")))