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

S = eval(input())

T = eval(input())



l = len(S)

res = 0

for n in range(l):

    if S[n] == T[n]:

        res += 1

print(res)

# optimized version of the same code:

S = eval(input())

T = eval(input())

l = len(S)

ans = 0

for n in range(l):

    if S[n] == T[n]:

        ans += 1

print(ans)

S = eval(input())
T = eval(input())
l = len(S)
res = 0
for n in range(l):
    if S[n] == T[n]:
        res += 1
print(res)

S = eval(input())
T = eval(input())
l = len(S)
ans = 0
for n in range(l):
    if S[n] == T[n]:
        ans += 1
print(ans)

-res = 0 +ans = 0 -        res += 1 -print(res) +        ans += 1 +print(ans)