X=input()
Y=input()
if len(X)-len(Y) not in (0,1):
	print('?')
	exit()
for i in range(len(X)):
	print(X[i], end='')
	if i<len(Y):
		print(Y[i], end='')