s = list(eval(input()))

ans = ''

for j in s[0:len(s):2]:

    ans += j

print(ans)
s = list(eval(input()))

print((''.join(s[::2])))
s = list(eval(input()))
ans = ""
for j in s[0 : len(s) : 2]:
    ans += j
print(ans)

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

-ans = "" -for j in s[0 : len(s) : 2]: -    ans += j -print(ans) +print(("".join(s[::2])))