s = input()

output_char = list(range(0,len(s),2))



for i in output_char:

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

s = eval(input())



print((s[::2]))

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

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

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