x=input()
y=input()
if not(len(x)==len(y)or len(x)==len(y)+1):
  exit(print('?'))
for i,j in zip(x,y+' '):
  print(i,j,sep='',end='')