s = list(eval(input()))

l = len(s)

a = ''

if l%2 != 0:

    for i in range(l//2+1):

        a = a + "".join(s[2*i])

else:

    for i in range(l//2):

        a = a + "".join(s[2*i])

print(a)
S = eval(input())

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

a = "".join(l)

print(a)
s = list(eval(input()))
l = len(s)
a = ""
if l % 2 != 0:
    for i in range(l // 2 + 1):
        a = a + "".join(s[2 * i])
else:
    for i in range(l // 2):
        a = a + "".join(s[2 * i])
print(a)

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

-s = list(eval(input())) -l = len(s) -a = "" -if l % 2 != 0: -    for i in range(l // 2 + 1): -        a = a + "".join(s[2 * i]) -else: -    for i in range(l // 2): -        a = a + "".join(s[2 * i]) +S = eval(input()) +l = [S[i] for i in range(0, len(S), 2)] +a = "".join(l)