S = eval(input())

arr = []

for i in range(len(S)):

    if i%2 == 0:

        arr.append(S[i])

print((''.join(arr)))

S = eval(input())

print((S[::2]))
S = eval(input())
arr = []
for i in range(len(S)):
    if i % 2 == 0:
        arr.append(S[i])
print(("".join(arr)))

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

-arr = [] -for i in range(len(S)): -    if i % 2 == 0: -        arr.append(S[i]) -print(("".join(arr))) +print((S[::2]))