s = str(eval(input()))

l = []

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

    l.append(s[i])

print(("".join(l)))
s = str(eval(input()))

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

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

-l = [] -for i in range(0, len(s), 2): -    l.append(s[i]) -print(("".join(l))) +print((s[0::2]))