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

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

ans = 0

for i in range(A,B+1):

    i = str(i)

    if i[0] == i[4]:

        if i[1] == i[3]:

            ans += 1

        else:

            ans += 0

    else:

        ans += 0

print(ans)

# optimized version of the same code:

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

ans = 0

for i in range(A,B+1):

    k = str(i)

    if k[0] == k[4] and k[1] == k[3]:

        ans += 1

print(ans)
A, B = list(map(int, input().split()))
ans = 0
for i in range(A, B + 1):
    i = str(i)
    if i[0] == i[4]:
        if i[1] == i[3]:
            ans += 1
        else:
            ans += 0
    else:
        ans += 0
print(ans)

A, B = list(map(int, input().split()))
ans = 0
for i in range(A, B + 1):
    k = str(i)
    if k[0] == k[4] and k[1] == k[3]:
        ans += 1
print(ans)

-    i = str(i) -    if i[0] == i[4]: -        if i[1] == i[3]: -            ans += 1 -        else: -            ans += 0 -    else: -        ans += 0 +    k = str(i) +    if k[0] == k[4] and k[1] == k[3]: +        ans += 1