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

W = input().lower()

s = []

while True:

    T = list(map(str, input().split()))

    if(T[0] == "END_OF_TEXT"):

        break

    else:

        for i in range(len(T)):

            s.append(T[i].lower())

ans = 0

for i in range(len(s)):

    if(s[i] == W):

        ans += 1

print(ans)

# optimized version of the same code:

W = input().lower()

s = []

ans = 0

while True:

    T = list(map(str, input().split()))

    if(T[0] == "END_OF_TEXT"):

        break

    else:

        for i in range(len(T)):

            if(W == T[i].lower()):

                ans += 1

print(ans)
W = input().lower()
s = []
while True:
    T = list(map(str, input().split()))
    if T[0] == "END_OF_TEXT":
        break
    else:
        for i in range(len(T)):
            s.append(T[i].lower())
ans = 0
for i in range(len(s)):
    if s[i] == W:
        ans += 1
print(ans)

W = input().lower()
s = []
ans = 0
while True:
    T = list(map(str, input().split()))
    if T[0] == "END_OF_TEXT":
        break
    else:
        for i in range(len(T)):
            if W == T[i].lower():
                ans += 1
print(ans)

+ans = 0 -            s.append(T[i].lower()) -ans = 0 -for i in range(len(s)): -    if s[i] == W: -        ans += 1 +            if W == T[i].lower(): +                ans += 1