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

S = eval(input())

K = int(eval(input()))

a = list(set(S))

a.sort()



k = []

l = 0

while l < len(a):

    for i in range(len(S)):

        if S[i] == a[l]:

            for j in range(1,6):

                if i+j <= len(S):

                    k.append(S[i:i+j])

                else:

                    break

    l += 1



k = list(set(k))

k.sort()

print((k[K-1]))

# optimized version of the same code:

S = eval(input())

K = int(eval(input()))

a = []

for i in range(len(S)+1):

    for j in range(1,6):

        if i+j <= len(S):

            a.append(S[i:i+j])

        else:

            break

            

a = list(set(a))

a.sort()

print((a[K-1]))
S = eval(input())
K = int(eval(input()))
a = list(set(S))
a.sort()
k = []
l = 0
while l < len(a):
    for i in range(len(S)):
        if S[i] == a[l]:
            for j in range(1, 6):
                if i + j <= len(S):
                    k.append(S[i : i + j])
                else:
                    break
    l += 1
k = list(set(k))
k.sort()
print((k[K - 1]))

S = eval(input())
K = int(eval(input()))
a = []
for i in range(len(S) + 1):
    for j in range(1, 6):
        if i + j <= len(S):
            a.append(S[i : i + j])
        else:
            break
a = list(set(a))
a.sort()
print((a[K - 1]))

-a = list(set(S)) +a = [] +for i in range(len(S) + 1): +    for j in range(1, 6): +        if i + j <= len(S): +            a.append(S[i : i + j]) +        else: +            break +a = list(set(a)) -k = [] -l = 0 -while l < len(a): -    for i in range(len(S)): -        if S[i] == a[l]: -            for j in range(1, 6): -                if i + j <= len(S): -                    k.append(S[i : i + j]) -                else: -                    break -    l += 1 -k = list(set(k)) -k.sort() -print((k[K - 1])) +print((a[K - 1]))