s = input()

for i in range(0,len(s),2):

    print(s[i],end="")

s = eval(input())

ans = ""

for i in range(len(s)):

    if i%2 == 0:

        ans = ans + s[i]

print(ans)
s = input()
for i in range(0, len(s), 2):
    print(s[i], end="")

s = eval(input())
ans = ""
for i in range(len(s)):
    if i % 2 == 0:
        ans = ans + s[i]
print(ans)

-s = input() -for i in range(0, len(s), 2): -    print(s[i], end="") +s = eval(input()) +ans = "" +for i in range(len(s)): +    if i % 2 == 0: +        ans = ans + s[i] +print(ans)