s = list(eval(input()))

ans = []

for i in range(len(s)):

    if i % 2 == 0:

        ans.append(s[i])

print(("".join(ans)))

s = list(eval(input()))

print(("".join(s[0:len(s):2])))



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

s = list(eval(input()))
print(("".join(s[0 : len(s) : 2])))

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