r=raw_input while 1:print''.join(' _-'[int(a+b,2)]for a,b in zip(r(),r()))