s = input()

for i in range(len(s)):

    if i % 2 == 0:

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

print()

s = eval(input())

ans = ""

for i in range(len(s)):

    if i % 2 == 0:

        ans += s[i]

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

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

-s = input() +s = eval(input()) +ans = "" -        print(s[i], end="") -print() +        ans += s[i] +print(ans)