s = eval(input())



answer = ""

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

    answer += s[i]

print(answer)
s = eval(input())

print((s[0::2]))
s = eval(input())
answer = ""
for i in range(0, len(s), 2):
    answer += s[i]
print(answer)

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

-answer = "" -for i in range(0, len(s), 2): -    answer += s[i] -print(answer) +print((s[0::2]))