s = eval(input())

t = ''

for i in range(len(s)):

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

        t += s[i]

print(t)
s = eval(input())

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

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

-t = "" -for i in range(len(s)): -    if ((i + 1) % 2) != 0: -        t += s[i] -print(t) +print((s[0::2]))