

s = eval(input())



n = len(s)

ans = ""



for i in range(n):

    if i % 2 == 0:

        ans += s[i]

print(ans)

        



s = list(eval(input()))

t = []



for i in range(0,len(s),2):

    t.append(s[i])



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

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

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