while 1:a,b=map(list,input().split());print(''.join(max(a,b).pop(0)for i in a+b))