s = input()

for i in range(1,len(s)+1):

    if i % 2 == 1:

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

s = eval(input())

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

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

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