s = input()

array = list(s)

l = len(array)

odd = array[0:l + 1:2]

for c in odd:

    print(c,end='')

s = eval(input())

ans = s[::2]

print(ans)
s = input()
array = list(s)
l = len(array)
odd = array[0 : l + 1 : 2]
for c in odd:
    print(c, end="")

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

-s = input() -array = list(s) -l = len(array) -odd = array[0 : l + 1 : 2] -for c in odd: -    print(c, end="") +s = eval(input()) +ans = s[::2] +print(ans)