O = eval(input())

E = eval(input())

P = ""

for i in range(min(len(O),len(E))):

  if O[i] == "":

    break

  else:

    P = P+O[i]

  if E[i] == "":

    break

  else:

    P = P+E[i]

if len(O)-len(E) == 1:

  P = P+O[-1]

elif len(E)-len(O) == 1:

  P = P+E[-1]

else:

  P = P

print(P)
S = eval(input())

T = eval(input())

ans = ""

if len(S)>len(T):

  for i in range(len(T)):

    ans += S[i]

    ans += T[i]

  ans += S[-1]

elif len(S)<len(T):

  for i in range(len(S)):

    ans += S[i]

    ans += T[i]

  ans += T[-1]

else:

  for i in range(len(T)):

    ans += S[i]

    ans += T[i]

print(ans)
O = eval(input())
E = eval(input())
P = ""
for i in range(min(len(O), len(E))):
    if O[i] == "":
        break
    else:
        P = P + O[i]
    if E[i] == "":
        break
    else:
        P = P + E[i]
if len(O) - len(E) == 1:
    P = P + O[-1]
elif len(E) - len(O) == 1:
    P = P + E[-1]
else:
    P = P
print(P)

S = eval(input())
T = eval(input())
ans = ""
if len(S) > len(T):
    for i in range(len(T)):
        ans += S[i]
        ans += T[i]
    ans += S[-1]
elif len(S) < len(T):
    for i in range(len(S)):
        ans += S[i]
        ans += T[i]
    ans += T[-1]
else:
    for i in range(len(T)):
        ans += S[i]
        ans += T[i]
print(ans)

-O = eval(input()) -E = eval(input()) -P = "" -for i in range(min(len(O), len(E))): -    if O[i] == "": -        break -    else: -        P = P + O[i] -    if E[i] == "": -        break -    else: -        P = P + E[i] -if len(O) - len(E) == 1: -    P = P + O[-1] -elif len(E) - len(O) == 1: -    P = P + E[-1] +S = eval(input()) +T = eval(input()) +ans = "" +if len(S) > len(T): +    for i in range(len(T)): +        ans += S[i] +        ans += T[i] +    ans += S[-1] +elif len(S) < len(T): +    for i in range(len(S)): +        ans += S[i] +        ans += T[i] +    ans += T[-1] -    P = P -print(P) +    for i in range(len(T)): +        ans += S[i] +        ans += T[i] +print(ans)