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-----
CSS
CSR

-----Sample Output-----
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.

Difficulty: introductory

Starter code:

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

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

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


s = input()
t = input()

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


import math
import numpy as np
S = input()
T = input()

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

print(cnt)


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

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

s = input()
t = input()

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

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

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

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

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

x = input()
y = input()
count=0
if x[0]==y[0]:
  count +=1
if x[1]==y[1]:
  count +=1
if x[2]==y[2]:
  count +=1  
print(count)

forecast_list = list(input())
happened_list = list(input())

hit_count = 0

for f, h in zip(forecast_list, happened_list):
    if f == h:
        hit_count += 1

print(hit_count)

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

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

s = input()
t = input()

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

S=input()
T=input()

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

print(count)

S = input()
T = input()
count = 0

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

print(count)

S = input()
T = input()

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

#139-A

S =input()
T =input()

cnt = 0

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

print(cnt)


n = input()

n1 = input()

ind = 0
c = 0
for i in n1:
    if i == n[ind]:
        c += 1
    ind += 1

print(c)

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

S=input()
T=input()

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

print(count)

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

s = input()
t = input()

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

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

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

print(count)

S = input()
T = input()

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

print(ans)

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

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

print(count)

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

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


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

slist = list(input())
tlist = list(input())

slist_new = [slist[0] + '0', slist[1] + '1', slist[2] + '2']
tlist_new = [tlist[0] + '0', tlist[1] + '1', tlist[2] + '2']

list02 = slist_new + tlist_new
andlist = [x for x in list02 if list02.count(x) > 1]

print((len(andlist) // 2))


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

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

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

#ABC139 A

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


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

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

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

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

print(cnt)

f=list(input())
a=list(input())
g=0
if f[0]==a[0]:
    g+=1
if f[1]==a[1]:
    g+=1
if f[2]==a[2]:
    g+=1
print(g)    


A = str(input())
P = str(input())
cnt = 0
for i in range(3):
    if A[i] == P[i]:
        cnt += 1
print(cnt)


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

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

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


print(sum([1 for x, y in zip(input(), input()) if x == y]))

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

s = input()
t = input()
ans = 0

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

print(ans)


S = input()
T = input()

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

print(res)

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


def __starting_point():
    main()

__starting_point()

S = input()
T = input()

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

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

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

s = input()
t = input()

cnt = 0

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

print(cnt)

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

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)

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)

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

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

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


S,T = [input() for _ in range(2)]
count=0
for i,j in zip(S,T):
       if i==j:count+=1
print(count)

S = list(input())
T = list(input())

count = 0
i = 0

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

print(count)


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

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

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


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

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

S = str(input())
T = str(input())
count = 0

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

print(count)

s = input()
t = input()

count = 0

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

print(count)

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

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


s=input()
t=input()

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


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

def resolve():
    s = input()
    t = input()
    cnt = 0
    for i,j in zip(s,t):
        if i==j: cnt += 1
    print(cnt)
resolve()

s = input()
t = input()

res = 0

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

print(res)


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


s=str(input())
t=str(input())
cnt=0

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

s = input()
t = input()

a = 0

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

print(a)

s = input()
t = input()
count = 0

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


print(sum(i==j for i,j in zip(input(),input())))

s = input()
t = input()

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

s=input()
t=input()

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


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

f = list(input())
c = list(input())

print((sum(1 for _f, _c in zip(f, c) if _f == _c)))


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

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


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


s=input()
t=input()

answer=0

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

S = input()
T = input()

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

print(cnt)

S = input()
T = input()
ans = [1 for s,t in zip(S,T) if s==t]
print(sum(ans))

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

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

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

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

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

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

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

print(Ans)

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

print(cnt)

ans = 0
S = input()
T =input()

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

print(ans)