s=input()

for i in range(len(s)):

    if i%2==0:

        print(s[i],end="")



print("")

s=eval(input())

l=len(s)

t=""

for i in range(l):

    if i%2==0:

        t+=s[i]

print(t)

s = input()
for i in range(len(s)):
    if i % 2 == 0:
        print(s[i], end="")
print("")

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

-s = input() -for i in range(len(s)): +s = eval(input()) +l = len(s) +t = "" +for i in range(l): -        print(s[i], end="") -print("") +        t += s[i] +print(t)