
# 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())

ans=0

if s[0]==t[0]:

    ans+=1

if s[1]==t[1]:

    ans+=1

if s[2]==t[2]:

    ans+=1

print(ans)


# optimized version of the same code:

s=eval(input())

t=eval(input())

ans=0

for i in range(0,3):

    if s[i]==t[i]:

        ans+=1

print(ans)

s = eval(input())
t = eval(input())
ans = 0
if s[0] == t[0]:
    ans += 1
if s[1] == t[1]:
    ans += 1
if s[2] == t[2]:
    ans += 1
print(ans)

s = eval(input())
t = eval(input())
ans = 0
for i in range(0, 3):
    if s[i] == t[i]:
        ans += 1
print(ans)

-if s[0] == t[0]: -    ans += 1 -if s[1] == t[1]: -    ans += 1 -if s[2] == t[2]: -    ans += 1 +for i in range(0, 3): +    if s[i] == t[i]: +        ans += 1