import numpy as np

s = np.array(list(eval(input())))

t = np.array(list(eval(input())))

print((len(s[s==t])))

s = eval(input())

t = eval(input())

ans = 0

for i in range(len(s)):

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

        ans += 1

print(ans)

import numpy as np

s = np.array(list(eval(input())))
t = np.array(list(eval(input())))
print((len(s[s == t])))

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

-import numpy as np - -s = np.array(list(eval(input()))) -t = np.array(list(eval(input()))) -print((len(s[s == t]))) +s = eval(input()) +t = eval(input()) +ans = 0 +for i in range(len(s)): +    if s[i] == t[i]: +        ans += 1 +print(ans)