s = input()

for i, r in enumerate(s):

  if i%2==0:

    print(r, end="")

s = eval(input())

print((s[::2]))
s = input()
for i, r in enumerate(s):
    if i % 2 == 0:
        print(r, end="")

s = eval(input())
print((s[::2]))

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