s = list(eval(input()))

ans = []

for i, _s in enumerate(s):

    if not i % 2:

        ans += [_s]

print((''.join(ans)))

s = eval(input())

print((s[::2]))

s = list(eval(input()))
ans = []
for i, _s in enumerate(s):
    if not i % 2:
        ans += [_s]
print(("".join(ans)))

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

-s = list(eval(input())) -ans = [] -for i, _s in enumerate(s): -    if not i % 2: -        ans += [_s] -print(("".join(ans))) +s = eval(input()) +print((s[::2]))