S = input()



for i in range(len(S)):

    if i % 2 == 0:

        print(S[i],end="")

S = eval(input())



ans = ""

for i in range(0,len(S),2):

    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(0, len(S), 2):
    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(0, len(S), 2): +    ans += S[i] +print(ans)