s = eval(input())

FF = lambda x: [x[i] for i in range(len(x)) if (i+1) % 2 != 0]

BA = FF(s)

BA

print(("".join(BA)))
S = eval(input())

ans = [S[i] for i in range(0, len(S), 2)]

print(("".join(ans)))    

s = eval(input())
FF = lambda x: [x[i] for i in range(len(x)) if (i + 1) % 2 != 0]
BA = FF(s)
BA
print(("".join(BA)))

S = eval(input())
ans = [S[i] for i in range(0, len(S), 2)]
print(("".join(ans)))

-s = eval(input()) -FF = lambda x: [x[i] for i in range(len(x)) if (i + 1) % 2 != 0] -BA = FF(s) -BA -print(("".join(BA))) +S = eval(input()) +ans = [S[i] for i in range(0, len(S), 2)] +print(("".join(ans)))