import sys o="" for l in zip(*sys.stdin):L=`l`.count;o+=chr(ord(l[0])-L("-")+L("+")) print o