s=list(input())



for i in range(len(s)):

  if i%2==0:

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

s=eval(input())

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

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

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