s = input()

for i in range(len(s)):

  if i%2 == 0:

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

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="")

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="") +        ans += s[i] +print(ans)