
# 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:

def main():

    N, M = (int(i) for i in input().split())



    def trial_division(n):

        divs = []

        for i in range(1, int(n**0.5)+1):

            if n % i == 0:

                divs.append(i)

                if i != n//i:

                    divs.append(n//i)

        divs.sort(reverse=True)

        return divs

    divs = trial_division(M)

    for d in divs:

        if d*N <= M:

            return print(d)





if __name__ == '__main__':

    main()


# optimized version of the same code:

def main():

    def trial_division(n):

        divs = []

        for i in range(1, int(n**0.5)+1):

            if n % i == 0:

                divs.append(i)

                if i != n//i:

                    divs.append(n//i)

        divs.sort(reverse=True)

        return divs



    N, M = (int(i) for i in input().split())

    divs = trial_division(M)

    for d in divs:

        if N*d <= M:

            return print(d)





if __name__ == '__main__':

    main()

def main():
    N, M = (int(i) for i in input().split())

    def trial_division(n):
        divs = []
        for i in range(1, int(n**0.5) + 1):
            if n % i == 0:
                divs.append(i)
                if i != n // i:
                    divs.append(n // i)
        divs.sort(reverse=True)
        return divs

    divs = trial_division(M)
    for d in divs:
        if d * N <= M:
            return print(d)


if __name__ == "__main__":
    main()

def main():
    def trial_division(n):
        divs = []
        for i in range(1, int(n**0.5) + 1):
            if n % i == 0:
                divs.append(i)
                if i != n // i:
                    divs.append(n // i)
        divs.sort(reverse=True)
        return divs

    N, M = (int(i) for i in input().split())
    divs = trial_division(M)
    for d in divs:
        if N * d <= M:
            return print(d)


if __name__ == "__main__":
    main()

-    N, M = (int(i) for i in input().split()) - +    N, M = (int(i) for i in input().split()) -        if d * N <= M: +        if N * d <= M: