s = eval(input())

ss = []

for i in range(len(s)):

	if i%2 == 0:

		ss.append(s[i])

print((''.join(ss)))
s = list(eval(input()))

print((''.join(s[::2])))

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

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

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