Problem:
 Score : 100 points    Problem Statement You will be given a string S of length 3 representing the weather forecast for three days in the past.  The i -th character (1 \leq i \leq 3) of S represents the forecast for the i -th day. S , C , and R stand for sunny, cloudy, and rainy, respectively.  You will also be given a string T of length 3 representing the actual weather on those three days.  The i -th character (1 \leq i \leq 3) of S represents the actual weather on the i -th day. S , C , and R stand for sunny, cloudy, and rainy, respectively.  Print the number of days for which the forecast was correct.      Constraints  S and T are strings of length 3 each.  S and T consist of S , C , and R .         Input Input is given from Standard Input in the following format:  S  T       Output Print the number of days for which the forecast was correct.        Sample Input 1 CSS
CSR      Sample Output 1 2   For the first day, it was forecast to be cloudy, and it was indeed cloudy.  For the second day, it was forecast to be sunny, and it was indeed sunny.  For the third day, it was forecast to be sunny, but it was rainy.   Thus, the forecast was correct for two days in this case.       Sample Input 2 SSR
SSR      Sample Output 2 3       Sample Input 3 RRR
SSS      Sample Output 3 0

Solution (Python):
S=input()
T=input()
counter=0
for i in range(0,3):
  if S[i]==T[i]:
    counter= counter+1
print(counter)

Solution (Python):
S = input()
T = input()
ans = 0
for i in range(3):
  if S[i] == T[i]:
    ans += 1
print(ans)

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

Solution (Python):
predict_weather = list(input())
actual_weather = list(input())
 
count = 0
for i in range(len(predict_weather)):
  if predict_weather[i] == actual_weather[i]:
    count += 1
 
print(count)

Solution (Python):
S=input()
T=input()

a=0
for i ,n in zip(S,T):
	if i==n:
		a+=1
print(a)

Solution (Python):
S = input()
T = input()

res = 0
for i in range(3):
  if S[i] == T[i]:
    res += 1
    
print(res)

Solution (Python):
S=list(input())
T=list(input())

ans=0
for i in range(3):
  if S[i]==T[i]:
    ans+=1

print(ans)

Solution (Python):
a,b,c = input()
d,e,f = input()
if a == d:
  x = int( 1 )
else:
  x = int( 0 )

if b == e:
  y = int( 1 )
else:
  y = int( 0 )
  
if c == f:
  z = int( 1 )
else:
  z = int( 0 )
  
print( x+y+z )

Solution (Python):
s=list(input())
t=list(input())
count=0
for i in range(3):
    if s[i]==t[i]:
        count+=1
print(count)

Solution (Python):
n=0;s=input();t=input()
for i in range(3):
    if s[i]==t[i]:
        n+=1
print(n)

Solution (Python):
l1 = input()
l2 = input()
res = 0
for i in range(len(l1)):
    if l1[i] == l2[i]:
        res += 1
print(res)

Solution (Python):
s1=input()
s2=input()
print(sum(s1[i]==s2[i] for i in range(len(s1))))

Solution (Python):
S = input()
T = input()
c = 0
for i in range(len(S)):
    if S[i] == T[i]:
        c = c+1
    else:
        c = c
print(c)

Solution (Python):
pred = [item for item in input()]
act = [item for item in input()]

res = 0
for i, weather in enumerate(pred):
    if weather == act[i]:
       res += 1

print(res)

Solution (Python):

S = str(input())
T = str(input())

ans=0

for i in range(3):
    if S[i]==T[i]:
        ans+=1

print(ans)

Solution (Python):
a = input()
b = input()
print(len([i for i in range(3) if a[i] == b[i]]))

Solution (Python):
s = str(input())
t = str(input())
x = 0
for i in range(0,3):
  if s[i] == t[i]:
    x = x + 1
print(x)

Solution (Python):
s = input()
t = input()
total = 0

for i in range(3):
  if s[i] == t[i]:
    total+=1
    
print(total)

Solution (Python):
S = input()
T = input()
counter = 0
if S[0] == T[0]:
 counter = counter + 1

if S[1] == T[1]:
 counter = counter + 1

if S[2] == T[2]:
 counter = counter + 1

print(counter)

Solution (Python):
forecast = input()
actual = input()
count = 0
 
for i in range(len(forecast)):
  if forecast[i] == actual[i]:
    count += 1
print(count)

Solution (Python):
s = [si for si in input()]
t = [ti for ti in input()]


cnt = 0
for i in range(3):
    if s[i] == t[i]:
        cnt += 1

print(cnt)

Solution (Python):
S = input()
T = input()

ans = 0
for i in range(3):
    if S[i] == T[i]:
        ans += 1

print(ans)

Solution (Python):
s=input()
t=input()
cnt=0
for i in range(3):
    if s[i]==t[i]:
        cnt+=1
print(cnt)

Solution (Python):
a = input()
b = input()

r = 0
for i,j in zip(a,b):
  if i == j:
    r += 1
print(r)

Solution (Python):
s = list(input())
t = list(input())
count = 0
for i in range(3):
  if s[i] == t[i]:
    count += 1
print(count)

Solution (Python):
S=input()
T=input()
count=0
for _ in range(3):
    if S[_]==T[_]:
        count+=1
print(count)

Solution (Python):
s = input()
t = input()
count = 0
for i in range(3):
    if s[i]==t[i]:
        count += 1
print(count)

Solution (Python):




a = input()
b = input()
r = 0
for i,j in zip(a, b):
    r += i == j
print(r)

Solution (Python):
s = input()
t = input()

s = list(s)
t = list(t)

count = 0
for i in range(3):
   if s[i] == t[i]:
       count += 1

print(count)

Solution (Python):
S=input()
T=input()
ans=0
for i in range(3):
	if S[i]==T[i]:
		ans+=1

print(ans)

Solution (Python):
S = input()
T = input()
count = 0
for i in range(len(S)):
    if S[i] == T[i]:
        count += 1
        
print(count)

Solution (Python):
S = input()
T = input()
print(len([1 for _s, _t in zip(S, T) if _s == _t]))

Solution (Python):
s = input()
t = input()
c = 0
for i in range(3):
    if s[i] == t[i]:
        c += 1
print(c)

Solution (Python):
S = input()
T = input()
res = 0
for c1,c2 in zip(S,T):
    if c1==c2:
        res +=1
print(res)

Solution (Python):
S = input()
T = input()

ans = 0
for i in range(3):
    ans += S[i] == T[i]
print(ans)

Solution (Python):
S=input()
T=input()
ans = 0
for i in range(3):
  if S[i] == T[i]:
    ans += 1
print(ans)

Solution (Python):
S = input()
T = input()

count = 0
for i in range(len(S)):
  if S[i] == T[i]: count += 1
print(count)

Solution (Python):
S = input()
T = input()
count = 0
for i in range(3):
  if S[i] == T[i]:
    count += 1
print(count)

Solution (Python):
S = input()
T = input()

count = 0
for i in range(3):
    if S[i] == T[i]:
        count += 1

print(count)

Solution (Python):
a = input()
b = input()
print(sum(x == y for x,y in zip(a,b)))

Solution (Python):
t1 = input()
t2 = input()
r = 0
for i in range(len(t1)) :
  if t1[i] == t2[i] :
    r += 1
print(r)

Solution (Python):
F = input()
A = input()
cnt = 0
for i in range(len(F)):
  if F[i] == A[i] :
    cnt +=1 
print(cnt)

Solution (Python):
S = input()
T = input()

count = 0
for i in range(3):
    if S[i] == T[i]:
        count += 1
print(count)

Solution (Python):
s=input()
t=input()
print(sum(s[i]==t[i] for i in range(3)))

Solution (Python):
s1, s2, s3 = input()
t1, t2, t3 = input()
ans =0

if s1 == t1:
   ans +=1
if s2 == t2:
   ans +=1
if s3 == t3:
   ans +=1
print(ans)

Solution (Python):

S = input()
T = input()

count = 0

for i in range(3):
    if S[i] == T[i]:
        count += 1

print(count)

Solution (Python):
S=input()
T=input()
S=[i for i in S]
T=[i for i in T]

count=0
for i in range(len(S)):
  if S[i]==T[i]:
    count+=1

print(count)

Solution (Python):
predict = input().strip()
actual = input().strip()

correct = sum([1 if x == y else 0 for x, y in zip(predict, actual)])

print(correct)

Solution (Python):
s = input()
t = input()

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

print(ans)

Solution (Python):
a=input()
b=input()
c=0
for i in range(len(a)):
  if a[i]==b[i]:
    c+=1
print (c)

Solution (Python):
a = str(input())
b = str(input())


ans = 0

if a[0] == b[0]:
  ans += 1
if a[1] == b[1]:
  ans += 1
if a[2] == b[2]:
  ans += 1
  
print(ans)

Solution (Python):
S = input()
T = input()

count = 0
for s, t in zip(S, T):
  if s == t:
    count += 1
print(count)

Solution (Python):
s = list(input())
t = list(input())

ct = 0
i = 0

for i in range(3):
 if s[i] == t[i]:
     ct += 1

print(ct)

Solution (Python):
s = list(input())
t = list(input())

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

Solution (Python):
s = input()
t = input()
cnt = 0
for i in range(len(s)):
    if s[i] == t[i]:
        cnt+=1
print(cnt)

Solution (Python):
S = input()
T = input()
ST_list = []

for n in S:
    ST_list.append(n)
for n in T:
    ST_list.append(n)

cnt = 0
for n in range(3):
    if (ST_list[n] == ST_list[n+3]):
        cnt += 1

print(cnt)

Solution (Python):
S = input()
T = input()
count = 0
for n in range(3):
  if S[n] == T[n]:
    count += 1
print(count)

Solution (Python):
s=input()
t=input()
print(sum(s[i]==t[i] for i in range(3)))

Solution (Python):
s = list(input())
t = list(input())
cnt = 0
for a,b in zip(s,t):
  if a == b:
    cnt+=1
print(cnt)

Solution (Python):


MOD = 10 ** 9 + 7

S = input()
T = input()

ans = sum([S[i] == T[i] for i in range(3)])

print(ans)

Solution (Python):
S = input()
T = input()
ans = 0
for i in range(len(S)):
  if S[i] == T[i]:
    ans += 1
    
print(ans)

Solution (Python):
S = input()
T = input()
ans = sum(1 for s, t in zip(S, T) if s == t)
print(ans)

Solution (Python):
S = list(input())
T = list(input())
count = 0
for i in range(3):
  if S[i] == T[i]:
    count += 1
print(count)

Solution (Python):
x = input()
x_list = list(x)
y = input()
y_list = list(y)
count = 0

for i in range(3):
  if x[i] == y[i]:
    count += 1
    
print(count)

Solution (Python):
S=input()
T=input()
a=0
for i in range(len(S)):
  if S[i]==T[i]:
    a=a+1
print(a)

Solution (Python):
pre = input()
gen = input()
ans=0
for i,k in zip(pre, gen):
    if i==k:
        ans+=1
print(ans)

Solution (Python):
S = input()
T = input()

days = 0
for i in range(3):
    if S[i] == T[i]:
        days = days + 1
print(days)

Solution (Python):
import sys

str = sys.stdin.readlines()


s = str[0]
t = str[1]
count = 0
for i in range(3):
    if s[i]==t[i]:
        count += 1

print(count)

Solution (Python):
S = input()
T = input()
ans =0
for i in range(3):
    if S[i] == T[i]:
        ans +=1

print(ans)

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n'))
    t = str(input().rstrip('\n'))
    cnt = 0
    for i in range(3):
        if s[i] == t[i]:
            cnt += 1
    print(cnt)


if __name__ == '__main__':
    slove()

Solution (Python):
s=input()
t=input()
x=0
for i in range(3):
  if s[i]==t[i]:
    x+=1
print(x)

Solution (Python):
s = input()
t = input()
count = 0
for i in range(3):
    if s[i]==t[i]:
        count += 1

print(count)

Solution (Python):
s = input()
t = input()
count = 0
for i in range(3):
  if s[i] == t[i]:
    count += 1
print(count)

Solution (Python):
S = list(raw_input())
T = list(raw_input())
res = sum(i == j for i, j in zip(S, T))
print(res)

Solution (Python):
hare="S"
kumori="C"
ame="R"
S=input()
T=input()
c=0
for i,s in enumerate(S):
    if s==T[i]:
        c+=1
print(c)

Solution (Python):
S = list(input())
T = list(input())

count = 0
for i in range(len(S)):
  if S[i] == T[i]:
    count = count + 1
    
print(count)

Solution (Python):
str1=input()
str2=input()
cnt=0

for i in range(3):
  if( str1[i:i+1] == str2[i:i+1] ):
    cnt=cnt+1
    
print(cnt)

Solution (Python):
S = input()
T = input()
ans = 0
for s, t in zip(S, T):
  if s == t:
    ans += 1
    
print(ans)

Solution (Python):
s = input()
t = input()
res = 0
for i in range(3):
  if s[i] == t[i]:
    res += 1
print(res)

Solution (Python):

import sys


def solve(S: str, T: str):

    a = 0
    for i in range(len(S)):
        if S[i] == T[i]:
            a+=1
        
    print(a)

    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = next(tokens)  
    T = next(tokens)  
    solve(S, T)

if __name__ == '__main__':
    main()

Solution (Python):
s = input()
t = input()
ans = 0
for i, j in zip(s, t):
    if i == j:
        ans += 1
print(ans)

Solution (Python):
S = list(input())
T = list(input())
count = 0
for i in range(len(S)):
    if S[i] == T[i]:
        count += 1
print(count)

Solution (Python):
S = input()
T = input()

ans=0
for s,t in zip(S,T):
    ans += (s == t)

print(ans)

Solution (Python):
s=list(input())
t=list(input())
cnt=0
for i in range(3):
    if(s[i]==t[i]):
        cnt+=1
print(cnt)

Solution (Python):
S=list(input())
T=list(input())
a=0
for i in range(3):
    if(S[i]==T[i]):
        a+=1
print(a)

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

Solution (Python):
a=0
b=0
d=0
s=input()
t=input()
if (s[0]) == (t[0]):
   a=1
if (s[1]) == (t[1]):
   b=1
if (s[2]) == (t[2]):
   d=1
print(a+b+d)

Solution (Python):
s=input()
t=input()
count=0
for i in range(len(s)):
    if(s[i] == t[i]):
        count+=1
    else:
        continue
print(count)

Solution (Python):
S = input()
T = input()
a = list(S)
b = list(T)
c = 0
if a[0] == b[0]:
    c +=1
if a[1] == b[1]:
    c +=1
if a[2] == b[2]:
    c +=1
print(c)

Solution (Python):
S = input()
T = input()
cnt = 0
for i in range(len(S)):
    if S[i] == T[i]:
        cnt += 1
print(cnt)

Solution (Python):
S = list(i for i in input())
T = list(j for j in input())

cnt = 0

for k in range(len(S)):
    if S[k] == T[k]:
        cnt += 1

print(cnt)

Solution (Python):
S = input()
T = input()

count = 0

for i in range(0, 3):
    if S[i] == T[i]:
        count += 1

print(count)

Solution (Python):


l = [input() for i in range(2)]

count = 0
ex = l[0]
ac = l[1]

for i in range(3):
    if ex[i] == ac[i]:
        count = count + 1
print(count)

Solution (Python):
s = list(input())
t = list(input())
count = 0

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

Solution (Python):
s = input()
t = input()

c = 0
for i, j in zip(s, t):
  if i == j:
    c += 1
  
print(c)

Solution (Python):
s=input()
t=input()
a=0
for i in range(3):
    if s[i] == t[i]:
        a+=1
print(a)

Solution (Python):
a = input()
b = input()
cnt = 0
for i in range(3):
    if a[i] == b[i]:
      cnt+=1
print(cnt)

Solution (Python):
S = str(input())
T = str(input())
count = 0
for i in range(len(S)):
  if S[i] == T[i]:
    count +=1
print(count)

Solution (Python):
S=input()
T=input()

count=0

for s,t in zip(S,T):
  if s==t:
    count+=1
  else:
    pass
  
print(count)

Solution (Python):
s1=input()
s2=input()

counter = 0
for i in range(3):
  if s1[i] == s2[i]:
    counter += 1
print(counter)

Solution (Python):
pre = input().rstrip()
sur = input().rstrip()
num = len([n for n in range(len(pre)) if pre[n] == sur[n]])
print(num)

Solution (Python):
a = input()
b = input()
count = 0
for i in range(3):
  if a[i] == b[i]:
    count += 1
    
print(count)

Solution (Python):
S = input()
T = input()

ans = 0
for s, t in zip(S, T):
    if s == t:
        ans += 1
    
print(ans)

Solution (Python):
A,B,C = input()
a,b,c = input()
count = 0
for x in [[A,a],[B,b],[C,c]]:
    if x[1] == x [0]:
        count += 1
print(count)

Solution (Python):
S = input()
T = input()

ans = 0
for i in range(3):
    if S[i] == T[i]:
        ans += 1

print(ans)

Solution (Python):
S = input()
T = input()
count = 0
for i in range(3):
    if S[i] == T[i]:
        count += 1
print(count)

Solution (Python):
S = input()
T = input()

cnt = 0
for i in range(3):
    if S[i] == T[i]:
        cnt += 1

print(cnt)

Solution (Python):
S = input()
T = input()
count = 0
for i in range(3):
    if S[i] == T[i]:
        count += 1
print(count)

Solution (Python):
S = raw_input()
T = raw_input()
print sum(1 for s, t in zip(S, T) if s == t)

Solution (Python):
A=input()
B=input()
c=0

for i in range(0,3):
  if A[i]==B[i]:
    c+=1
    
print(c)

Solution (Python):
S = input()
T = input()
count = 0

for n in range(3):
    if S[n] == T[n]:
        count += 1

print(count)

Solution (Python):
s = list(input())
t = list(input())
c = 0

for i in range(len(s)):
    if s[i] == t[i] : c +=1

print(c)

Solution (Python):

s = input()
t = input()

n = 0
for i in range(len(s)):
    if s[i] == t[i]:
        n += 1

print(n)

Solution (Python):
s = list(input())
t = list(input())
c = 0

for i in range(len(s)):
    if s[i] == t[i] : c +=1

print(c)

Solution (Python):
s=input()
t=input()
ans=0

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

print(ans)

Solution (Python):
a = input()
b = input()
cnt = 0
for i in range(len(a)):
  if a[i]==b[i]:
    cnt += 1
print(cnt)

Solution (Python):
S = input()
T = input()

count = 0
for i in range(3):
    if S[i] == T[i]:
        count += 1

print(count)

Solution (Python):
S = input()
T = input()
cnt = 0
for i in range(3):
    if S[i] == T[i]:
        cnt += 1
print(cnt)

Solution (Python):
S=input()
T=input()


count=0
for i in range(3):
    if S[i]==T[i]:
        count+=1
print(count)

Solution (Python):
s = input()
t = input()
cnt = 0
for i in range(len(s)):
    if s[i] == t[i]:
        cnt += 1
print(cnt)

Solution (Python):
S = input()
T = input()
n = len(S)

ans = 0
for i in range(n):
    if S[i] == T[i]:
        ans += 1

print(ans)

Solution (Python):
if __name__ == '__main__':
    s = input()
    t = input()
    count = 0
    for i in range(3):
        if s[i] == t[i]:
            count += 1
    print(count)

Solution (Python):
s = input()
t = input()

score = 0
for i in range(3):
    if s[i] == t[i]:
        score  =score + 1
        
print(score)

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

Solution (Python):
s=input()
t=input()
cnt=0
for i in range(3):
	if s[i]==t[i]:
		cnt+=1
		continue
	else:
		continue
print(cnt)

Solution (Python):
S = input()
T = input()
c = 0
for i in range(len(S)):
  if S[i] == T[i]:
    c = c + 1
print(c)

Solution (Python):
S = input()
T = input()
c = 0
for i in range(0,3):
  if S[i:i+1] == T[i:i+1]:
    c += 1
print(c)

Solution (Python):
s = input()
t = input()
goukei = 0
for i in range(len(s)):
    if s[i] == t[i]:
        goukei += 1

print(str(goukei))

Solution (Python):
S = input()
T = input()

sl = []
tl = []
ans = 0
for s in S:
  sl.append(s)

for t in T:
  tl.append(t)

for i in range(3):
  if sl[i] == tl[i]:
    ans += 1
print(ans)

Solution (Python):
predict_weather = str(input())
real_weather = str(input())

predict_list = list(predict_weather)
real_list = list(real_weather)

cnt = 0
for i in range(3):
  if predict_list[i] == real_list[i]:
    cnt += 1
    
print(cnt)

Solution (Python):
s1,s2,s3=input()
t1,t2,t3=input()
count=0
if s1==t1:
    count+=1
if s2==t2:
    count+=1
if s3==t3:
    count+=1
print(count)

Solution (Python):
s = input()
t = input()
c = 0
for i in range(len(s)):
	if s[i] == t[i]:
		c += 1
print(c)

Solution (Python):
S=input()
T=input()



count=0

for j in range(3):
  if S[j]==T[j]:
    count=count+1
    
print(count)

Solution (Python):
forecast = input()
actual = input()
print(sum(forecast[i] == actual[i] for i in range(3)))

Solution (Python):
v1=input()
v2=input()
cont = 0
for i in range(3):
    if v1[i]==v2[i]:
        cont+=1
print(cont)

Solution (Python):
S = input()
T = input()
ans = 0
for i in range(3):
  if S[i] == T[i]: ans+=1
print(ans)

Solution (Python):
pred = input()
result = input()
count = 0
for i in range(0, 3):
  if(pred[i] == result[i]):
    count = count + 1
print(count)

Solution (Python):
s1,s2,s3=input()
t1,t2,t3=input()
count=0
if s1==t1:
    count+=1
if s2==t2:
    count+=1
if s3==t3:
    count+=1
print(count)

Solution (Python):
s1,s2,s3=input()
t1,t2,t3=input()
count=0
if s1==t1:
    count+=1
if s2==t2:
    count+=1
if s3==t3:
    count+=1
print(count)

Solution (Python):
s1,s2,s3=input()
t1,t2,t3=input()
count=0
if s1==t1:
    count+=1
if s2==t2:
    count+=1
if s3==t3:
    count+=1
print(count)

Solution (Python):
s=input()
t=input()

cnt=0
if s[0]==t[0]:
    cnt+=1
if s[1]==t[1]:
    cnt+=1
if s[2]==t[2]:
    cnt+=1
print(cnt)

Solution (Python):
S=input()
T=input()
c = 1 if S[0]==T[0] else 0
c += 1 if S[1]==T[1] else 0
c += 1 if S[2]==T[2] else 0
print(c)

Solution (Python):
S = input()
T = input()


cnt = 0
for i in range(3):
    if S[i] == T[i]:
        cnt += 1

print(cnt)

Solution (Python):
s=list(input())
t=list(input())

count=0
for i in range(3):
  if(s[i]==t[i]):
    count +=1
    
print(count)

Solution (Python):
S = input()
T = input()
ans = 0
for i in range(3):
    if S[i] == T[i]:
        ans += 1

print(ans)

Solution (Python):
print(sum(map(lambda x, y:x==y, input(), input())))

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

Solution (Python):
from sys import exit, stdin
S = stdin.readline().rstrip()
T = stdin.readline().rstrip()
ans = 0
for i in range(3):
    if S[i] == T[i]:
        ans += 1
print(ans)

Solution (Python):
s1 = input()
s2 = input()
days = 0
for index, s in enumerate(s1):
  if s2[index] == s:
    days +=1
print(days)

Solution (Python):
tmp = list(input())
tmp2 = list(input())

s = 0
for i in range(len(tmp)):
  if tmp[i] == tmp2[i]:
    s += 1

print(s)

Solution (Python):
S = input()
T = input()
A = 0
for i in range(3):
    if S[i] == T[i]:
        A += 1
print(A)

Solution (Python):
S = input()
T = input()

A = 0

for i in range(3):
    if S[i] == T[i]:
        A += 1

print(A)

Solution (Python):
S = str(input())
T = str(input())

A = 0

for i in range(3):
    if S[i] == T[i]:
        A += 1

print(A)

Solution (Python):
S = input()
T = input()
x = 0
for i in range(3):
	if S[i] == T[i]:
		x += 1
print(x)

Solution (Python):
s = input()
t = input()

cnt = 0
for i in range(3):
    if s[i] == t[i]:
        cnt += 1
print(cnt)

Solution (Python):
S = input()
T = input()

ans=0
for i in range(len(S)):
  if S[i] == T[i]:
    ans += 1
print(ans)

Solution (Python):

S = input()
T = input()
right = 0

for i in range(3):
  if S[i] == T[i]:
    right += 1
    
print(right)

Solution (Python):
s = input()
t = input()
 
count = 0
 
for i in range(3):
		if s[i] == t[i]:
			count += 1  
    
print(count)

Solution (Python):
S = input()
T = input()

ans = 0
for i in range(3):
    if S[i] == T[i]:
        ans += 1
print(ans)

Solution (Python):
s = input()
t = input()

c = 0

for i in range(3):
    if s[i] == t[i]:
        c += 1

print(c)

Solution (Python):
S = input()
T = input()
ans = 0
for i in range(3):
    if S[i] == T[i]:
        ans += 1
print(ans)

Solution (Python):
a = input()
b = input()
count = 0
for i in range (3):
  if a[i]==b[i]:
    count +=1
print(count)

Solution (Python):
S = str(input())
T = str(input())

ans=0
for i in range(len(S)):
    if S[i]  == T[i]:
        ans+=1
print(ans)

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

Solution (Python):
s = list(input())
t = list(input())

count = 0

if s[0] == t[0]:
  count += 1
if s[1] == t[1]:
  count += 1
if s[2] == t[2]:
  count += 1

print(count)

Solution (Python):
s1 = input()
s2 = input()
s1_list = list(s1)
s2_list = list(s2)
ans = 0
for i in range(3):
    if(s1_list[i] == s2_list[i]):
        ans += 1
print(ans)

Solution (Python):
f = input()
r = input()

count = 0
for i in range(3):
  if f[i] == r[i]:
    count += 1
print(count)

Solution (Python):

import numpy as np

def main():
    forecast = input()
    real = input()

    ans = 0

    for i in range(3):
        if forecast[i] == real[i]:
            ans += 1

    print(ans)


main()

Solution (Python):
S = input()
R = input()
cnt = 0
for s,r in zip(S,R):
    if s==r:
        cnt += 1
print(cnt)

Solution (Python):
S = input()
T = input()

count = 0
for i in range(3):
    if(S[i] == T[i]):
        count += 1
print(count)

Solution (Python):


exp = list(input())
act = list(input())

cnt = 0
for i in range(3):
    if exp[i] == act[i]:
        cnt += 1

print(cnt)

Solution (Python):
s = input()
t = input()

ans = 0

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

Solution (Python):
str1 = input()
str2 = input()
result = 0
for i in range(3):
  if str1[i] == str2[i]:
    result += 1
    
print(result)

Solution (Python):
a = input()
b = input()
c = 0
for i in range(3):
  if a[i] == b[i]:
    c += 1
print(c)

Solution (Python):
s = input()
t = input()

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

print(ans)

Solution (Python):
S=input()
T=input()
ans = 0
for i in range(3):
  if S[i]==T[i]:
    ans +=1
print(ans)

Solution (Python):
S=input()
T=input()
ans = 0
for i in range(3):
  if S[i]==T[i]:
    ans +=1
    
print(ans)

Solution (Python):
S = input()
T = 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)

Solution (Python):
S = input()
T = input()

ans = 0

for i in range(3):
    if (S[i] == T[i]):
        ans += 1

print(ans)

Solution (Python):
yk  = input()
js  = input()
def caonima(yk, js):
    res = 0
    if len(yk) != len(js):
        return
    for i in range(len(yk)):
        if yk[i] == js[i]:
            res += 1
    return res
c = caonima(yk,js)
print(c)

Solution (Python):
a = str(input())
b = str(input())
count = 0
for i in range(3):
	if a[i] == b[i]:
		count += 1
        
print(count)

Solution (Python):
S = input()
T = input()

cnt = 0
for s, t in zip(S, T):
    if s == t:
        cnt += 1

print(cnt)

Solution (Python):
s = input()
t = input()
ans = 0
for i, z in zip(s, t):
    if i == z :
        ans+= 1
print(ans)

Solution (Python):
res = 0

for s, t in zip(input(), input()):
    if s == t:
        res += 1

print(res)

Solution (Python):
print(sum(c is d for c, d in zip(input(), input())))

Solution (Python):
S = input()
T = input()

count = 0
for i in range(3):
    if S[i] == T[i]:
        count += 1


print (count)

Solution (Python):
s = input()
t = input()
cnt = 0
for i,j in zip(s,t):
    if i == j:
        cnt += 1

print(cnt)

Solution (Python):
s = input()
t = input()
counter = 0
for i in range(len(s)):
    if s[i] == t[i]:
        counter += 1
print(counter)

Solution (Python):
s = list(input())
t = list(input())
print(sum(s[i] == t[i] for i in range(3)))

Solution (Python):
S = list(input())
T = list(input())
count = 0
for i in range(3):
	if S[i] == T[i]:
		count = count +1
print('{}'.format(count))

Solution (Python):
forecasts = list(input())
actuals = list(input())
ex_count = 0
for x in range(3):
    if forecasts[x] == actuals[x]:
        ex_count = ex_count + 1
print("{}".format(ex_count))

Solution (Python):
s = input()
t = input()
print((s[0]==t[0])+(s[1]==t[1])+(s[2]==t[2]))

Solution (Python):
s=input()
t=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)

Solution (Python):
forecast = list(input())
weather = list(input())
count = 0

for i in range(len(forecast)):
    if forecast[i] == weather[i]:
        count += 1

print(count)

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

Solution (Python):
S = input()
T = input()
cnt = 0
for i in range(3):
    if S[i] == T[i]:
        cnt += 1
print(cnt)

Solution (Python):
S = input()
T = input()
if len(S) or len(T) >3:
    exit
count = 0
if S[0] == T[0]:
    count = count +1

if S[1] == T[1]:
    count = count +1

if S[2] == T[2]:
    count = count +1

print(count)

Solution (Python):
S = input()
T = input()

count = 0
for i in range(0, 3):
  if S[i] == T[i]:
    count += 1
print(count)

Solution (Python):
a = input()
b = input()

x =0

for i in range(3):
    if a[i] == b[i]:
        x += 1

print(x)

Solution (Python):
S=list(input())
T=list(input())

a=0
for i in range(3):
    if S[i]==T[i]:
        a+=1

print(a)

Solution (Python):
S=input()
T=input()
print(sum((s==t) for s,t in zip(S,T)))

Solution (Python):
S = input()
T = input()
cnt = 0

for i in range(3):
    if S[i] == T[i]:
        cnt += 1
print(cnt)

Solution (Python):
S = input()
T = input()
ans = 0

for i in range(3):
  if S[i]==T[i]:
    ans += 1
  else:
    continue

print(ans)

Solution (Python):
S=input()
T=input()
count=0
for i in range(3):
	if(S[i]==T[i]):
		count+=1
print(count)

Solution (Python):



S = input().strip()
T = input().strip()

count = 0
for i in range(3):
    if S[i] == T[i]:
        count += 1

print(count)

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

Solution (Python):
def count_same(f, r):
    count = 0
    for i in range(len(f)):
        if f[i].upper() == r[i].upper():
            count += 1
    print(count)
forecast = input()
real = input()
if (len(forecast) == len(real)):
    count_same(forecast, real)

Solution (Python):
S = input()
T = input()
print(sum((s == t) for s, t in zip(S, T)))

Solution (Python):
S = input()
T = input()
count = 0

for s, t in zip(S,T):
  if s == t:
    count += 1
    
print(count)

Solution (Python):
pred = list(input())
fact = list(input())

i = 0
ans = 0
while i <= len(pred)-1:
  if pred[i] == fact[i]:
    ans += 1
    i += 1
  
  else:
    i += 1

print(ans)

Solution (Python):
s = list(input())
S = list(input())
p = 0
for i in range(3):
    p += 1 if s[i] == S[i] else 0
print(p)

Solution (Python):
import sys

s = input().strip()
t = input().strip()

print(sum(s_ == t_ for s_, t_ in zip(s, t)))

Solution (Python):
s = input().strip()
t = input().strip()
count = 0
for i in range(3):
  if s[i] == t[i]:
    count += 1
print(count)

Solution (Python):
s = input()
t = input()
cnt = 0

for i in range(3):
  if s[i]==t[i]:
    cnt +=1
print(cnt)

Solution (Python):
S = input()
T = input()
cnt = 0
for i in range(3):
  if S[i]==T[i]:
    cnt += 1
print(cnt)

Solution (Python):
s = input()
t = input()

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

Solution (Python):


s = input()
t = input()

rtn = 0
for i in range(3):
  if(s[i] == t[i]):
    rtn += 1

print(rtn)

Solution (Python):
s = input()
t = input()
ans = 0

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

print(ans)

Solution (Python):
S = input()
T = input()
print(sum(1 for s, t in zip(S, T) if s == t))

Solution (Python):
S=input()
T=input()
cnt=0
for i,j in zip(S,T):
    if i==j: cnt+=1
print(cnt)

Solution (Python):
N = input()
P = input()
f = 0
for i in range(0, 3):
    if (N[i] == P[i]):
        f += 1
print(f)

Solution (Python):
S = list(input())
T = list(input())
s = 0
for i in range(3):
  if S[i] == T[i]:
    s += 1
print(s)

Solution (Python):
s,t=input(),input() 
print((s[0]==t[0])+(s[1]==t[1])+(s[2]==t[2]))

Solution (Python):
forecast = input()
weather = input()

ans = 0
for i in range(3):
  if forecast[i] == weather[i]:
    ans += 1

print(ans)

Solution (Python):



def main():
    s = input()
    t = input()
    count = 0

    for si, ti in zip(s, t):
        if si == ti:
            count += 1

    print(count)


if __name__ == '__main__':
    main()

Solution (Python):
s = input()
t = input()
i = 0
count = 0
while i < 3:
    if s[i] == t[i]:
        count += 1
    i += 1
print(count)

Solution (Python):
S = input()
T = input()
a = [1 for s,t in zip(S,T) if s==t]
print(sum(a))

Solution (Python):
S = input()
T = input()
a = 0

for s,t in zip(S,T):
  if s==t:
    a+=1

print(a)

Solution (Python):
S=list(input())
T=list(input())
cnt = 0
for i in range(3):
    if S[i] == T[i]:
        cnt += 1
print(cnt)

Solution (Python):
s=list(input())
t=list(input())

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

Solution (Python):
S = input()
T = input()

count = 0
for i in range(3):
    if S[i] == T[i]:
        count += 1
print(count)

Solution (Python):
S=input()
T=input()
flag=0
for i in range(3):
  if S[i]==T[i]:
    flag+=1
print(flag)

Solution (Python):
s = input()
t = input()
num = 0
for i in range(3):
  if s[i] == t[i]:
    num += 1
    
print(num)

Solution (Python):
S = input()
T = input()

ans = 0
for s,t in zip(S,T):
	if s == t:
		ans += 1

print(ans)