
# 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, M = list(map(int, input().split()))

L, R = [], []

low = -float('INF')

high = float('INF')

for i in range(M):

    l, r = list(map(int, input().split()))

    L.append(l)

    R.append(r)

    if l > low:

        low = l

    if r < high:

        high = r

print((max(0, high - low + 1)))


# optimized version of the same code:

N, M = list(map(int, input().split()))

low = -float('INF')

high = float('INF')

for i in range(M):

    l, r = list(map(int, input().split()))

    if l > low:

        low = l

    if r < high:

        high = r

print((max(0, high - low + 1)))

N, M = list(map(int, input().split()))
L, R = [], []
low = -float("INF")
high = float("INF")
for i in range(M):
    l, r = list(map(int, input().split()))
    L.append(l)
    R.append(r)
    if l > low:
        low = l
    if r < high:
        high = r
print((max(0, high - low + 1)))

N, M = list(map(int, input().split()))
low = -float("INF")
high = float("INF")
for i in range(M):
    l, r = list(map(int, input().split()))
    if l > low:
        low = l
    if r < high:
        high = r
print((max(0, high - low + 1)))

-L, R = [], [] -    L.append(l) -    R.append(r)