s = eval(input())

res = []

for i,x in enumerate(list(s)):

    if i%2==0:

        res.append(x)

print((''.join(res)))
s = eval(input())

print((s[::2]))

s = eval(input())
res = []
for i, x in enumerate(list(s)):
    if i % 2 == 0:
        res.append(x)
print(("".join(res)))

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

-res = [] -for i, x in enumerate(list(s)): -    if i % 2 == 0: -        res.append(x) -print(("".join(res))) +print((s[::2]))