s = eval(input())



i = 1

ans = ''

for x in s:

    if i & 1:

        ans += x

    i += 1

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

print((s[::2]))
s = eval(input())
i = 1
ans = ""
for x in s:
    if i & 1:
        ans += x
    i += 1
print(ans)

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

-i = 1 -ans = "" -for x in s: -    if i & 1: -        ans += x -    i += 1 -print(ans) +print((s[::2]))