A=list(eval(input()))

print(("".join(A[::2])))
print((input()[::2]))
A = list(eval(input()))
print(("".join(A[::2])))

print((input()[::2]))

-A = list(eval(input())) -print(("".join(A[::2]))) +print((input()[::2]))