s = eval(input())

a =[]

for i in range(len(s)):

  if (i+1)%2 !=0:

    a.append(s[i])

print((''.join(a)))
s = list(eval(input()))

a = list(s[::2])

print((''.join(a)))
s = eval(input())
a = []
for i in range(len(s)):
    if (i + 1) % 2 != 0:
        a.append(s[i])
print(("".join(a)))

s = list(eval(input()))
a = list(s[::2])
print(("".join(a)))

-s = eval(input()) -a = [] -for i in range(len(s)): -    if (i + 1) % 2 != 0: -        a.append(s[i]) +s = list(eval(input())) +a = list(s[::2])