#72b

s = eval(input())

ans=[]

for i in range(len(s)):

    if i%2==0:

        ans.append(s[i])

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

print((s[::2]))
# 72b
s = eval(input())
ans = []
for i in range(len(s)):
    if i % 2 == 0:
        ans.append(s[i])
print(("".join(ans)))

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

-# 72b -ans = [] -for i in range(len(s)): -    if i % 2 == 0: -        ans.append(s[i]) -print(("".join(ans))) +print((s[::2]))