
# 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()))

res = 1

for num in range(1, n+1):

  res = res * num

  res = res % (pow(10,9) + 7)

print(res)

# optimized version of the same code:

n = int(eval(input()))

res = 1

for num in range(1, n+1):

    res = res * num

    res = res % (10**9 + 7)

print(res)

n = int(eval(input()))
res = 1
for num in range(1, n + 1):
    res = res * num
    res = res % (pow(10, 9) + 7)
print(res)

n = int(eval(input()))
res = 1
for num in range(1, n + 1):
    res = res * num
    res = res % (10**9 + 7)
print(res)

-    res = res % (pow(10, 9) + 7) +    res = res % (10**9 + 7)