
# slower version:

s = input()
for i in range(len(s)):
  if i%2 == 0:
    print(s[i], end = '')


# optimized version of the same code:

s = input()
ans = ''
for i in range(len(s)):
  if i % 2 == 0:
    ans += s[i]
print(ans)



# slower version:

n=int(eval(input()))-1

A=list(map(int,input().split()))

i=0

for j in range(n):

 if A[j]<=A[-1]:A[i],A[j]=A[j],A[i];i+=1

A[i],A[n]=A[n],A[i]

print((" ".join(map(str,A[:i]))+" ["+str(A[i])+"] "+" ".join(map(str,A[i+1:]))))


# optimized version of the same code:

def s():

 n=int(eval(input()))-1

 A=list(map(int,input().split()))

 i=0

 for j in range(n):

  if A[j]<=A[-1]:A[i],A[j]=A[j],A[i];i+=1

 A[i],A[n]=A[n],A[i]

 print((" ".join(map(str,A[:i]))+" ["+str(A[i])+"] "+" ".join(map(str,A[i+1:]))))

if'__main__'==__name__:s()

n = int(eval(input())) - 1
A = list(map(int, input().split()))
i = 0
for j in range(n):
    if A[j] <= A[-1]:
        A[i], A[j] = A[j], A[i]
        i += 1
A[i], A[n] = A[n], A[i]
print(
    (
        " ".join(map(str, A[:i]))
        + " ["
        + str(A[i])
        + "] "
        + " ".join(map(str, A[i + 1 :]))
    )
)

def s():
    n = int(eval(input())) - 1
    A = list(map(int, input().split()))
    i = 0
    for j in range(n):
        if A[j] <= A[-1]:
            A[i], A[j] = A[j], A[i]
            i += 1
    A[i], A[n] = A[n], A[i]
    print(
        (
            " ".join(map(str, A[:i]))
            + " ["
            + str(A[i])
            + "] "
            + " ".join(map(str, A[i + 1 :]))
        )
    )


if "__main__" == __name__:
    s()

-n = int(eval(input())) - 1 -A = list(map(int, input().split())) -i = 0 -for j in range(n): -    if A[j] <= A[-1]: -        A[i], A[j] = A[j], A[i] -        i += 1 -A[i], A[n] = A[n], A[i] -print( -    ( -        " ".join(map(str, A[:i])) -        + " [" -        + str(A[i]) -        + "] " -        + " ".join(map(str, A[i + 1 :])) +def s(): +    n = int(eval(input())) - 1 +    A = list(map(int, input().split())) +    i = 0 +    for j in range(n): +        if A[j] <= A[-1]: +            A[i], A[j] = A[j], A[i] +            i += 1 +    A[i], A[n] = A[n], A[i] +    print( +        ( +            " ".join(map(str, A[:i])) +            + " [" +            + str(A[i]) +            + "] " +            + " ".join(map(str, A[i + 1 :])) +        ) -) + + +if "__main__" == __name__: +    s()