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

sunuke = [True]*N

for i in range(K):

    d = int(eval(input()))

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

    for a in A:

        sunuke[a-1] = False



ans = 0

for i in range(N):

    if sunuke[i]:

        ans += 1

print(ans)

# optimized version of the same code:

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

flag = [True]*N

for i in range(K):

    d = int(eval(input()))

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

    for a in A:

        flag[a-1] = False

ans = 0

for i in range(N):

    if flag[i]:

        ans += 1

print(ans)
N, K = list(map(int, input().split()))
sunuke = [True] * N
for i in range(K):
    d = int(eval(input()))
    A = list(map(int, input().split()))
    for a in A:
        sunuke[a - 1] = False
ans = 0
for i in range(N):
    if sunuke[i]:
        ans += 1
print(ans)

N, K = list(map(int, input().split()))
flag = [True] * N
for i in range(K):
    d = int(eval(input()))
    A = list(map(int, input().split()))
    for a in A:
        flag[a - 1] = False
ans = 0
for i in range(N):
    if flag[i]:
        ans += 1
print(ans)

-sunuke = [True] * N +flag = [True] * N -        sunuke[a - 1] = False +        flag[a - 1] = False -    if sunuke[i]: +    if flag[i]: