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):
import sys
input = sys.stdin.readline
def print_ans(S, T):
    """Test Case
    >>> print_ans("CSS", "CSR")
    2
    >>> print_ans("SSR","SSR")
    3
    """
    ans = 0
    for i in range(len(S)):
        if S[i] == T[i]:
            ans += 1
    print(ans)


if __name__ == '__main__':
    S = input().rstrip()
    T = input().rstrip()
    print_ans(S, T)

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

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

print (c)

Solution (Python):
S=input()
T=input()
lst=[]
for i in range(0,3):
    if S[i]==T[i]:
        lst.append('7')
print(len(lst))

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

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

S_list = list(S)
T_list = list(T)

i = 0
x = 0

while(i < 3):
    if(S_list[i] == T_list[i]):
        x = x + 1
    i = i + 1

print(x)

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

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 = str(input())
t = str(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 x in range(3):
    if s[x] == t[x] :
        ans += 1

print(ans)

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):
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):
li_s = list(input())
li_t = list(input())
a = 0
for i in range(3):
  if li_s[i] == li_t[i]:
    a += 1
print(a)

Solution (Python):

s = input()
t = input()

num_correct = 0

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

print(num_correct)

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

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

Solution (Python):

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

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()
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_list = list(input())

T_list = list(input())

l = 0
for i in range(3):
  if S_list[i] == T_list[i]:
    l = l + 1

print(l)

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

Solution (Python):

S = input()
T = input()

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

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

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

print(ans)

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

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

print(ans)

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

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=list(input())
t=list(input())
count=0
for i in range(3):
  if s[i]==t[i]:
    count+=1
print(count)

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()
ans = 0
for i in range(len(s)):
  if s[i] == t[i]:
    ans += 1
    
print(ans)

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

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

print (result)

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

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

print(result)

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

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()
ans=0
for i in range(len(s)):
  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 = count + 1
print(count)

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

k = 0

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

Solution (Python):
print(sum([1 if i==e else 0 for i,e in zip(input(),input())]))

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

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(len(S)):
    if S[i] == T[i]:
        count += 1
print(count)

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=0
for i in range(3):
    if(s[i]==t[i]):
        ans+=1
print(ans)

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

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):
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):
s = input()
t = input()
count = 0

for i, v in zip(s,t):
  if i == v:
    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 s, t in zip(S, T):
    if s==t:
        count+=1
print(count)

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

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

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

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

Solution (Python):



s = input();
t = input();

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

print(count_all);

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

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

Solution (Python):
i = 0
chara1 = input()
chara1_list = list(chara1)
chara2 = input()
chara2_list = list(chara2)
if chara1_list[0] == chara2_list[0]:
    i += 1
if chara1_list[1] == chara2_list[1]:
    i += 1
if chara1_list[2] == chara2_list[2]:
    i += 1
print(i)

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()
count = 0

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

print(count)

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

n = [sx == tx for sx, tx in zip(s, t)]
print(n.count(True))

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

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

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

print(answer)

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()
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(len(s)):
  if s[i]==t[i]:
    ans+=1
print(ans)

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


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

    return cnt


print(solve(S, T))

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

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=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
print(sum(u==v for u,v in zip(S(),S())))

Solution (Python):
S=input()
T=input()
print(sum([1 for u,v in zip(S,T) if u==v]))

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

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

print(count)

Solution (Python):
import sys


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


if __name__ == '__main__':
    solve()

Solution (Python):
s1 = input()
s2 = input()
c = 0
for x, y in zip(s1, s2):
	if x == y:
		c += 1
print(c)

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

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()
 
 
cnt = 0
for i in range(3):
    if s[i] == t[i]:
        cnt += 1
 
print(cnt)

Solution (Python):
count = 0
for s in zip(input(), input()):
  if s[0] == s[1]:
    count += 1
      
print(count)

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,T = input(),input()

print(sum(int(a==b) for a,b in zip(S,T)))

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

count = 0
for i,elem in enumerate(s):
    if elem == t[i]:
        count += 1

    
print(count)

Solution (Python):
forecasts     = input()
real_weathers = input()

correct_number = 0
for date in range(len(forecasts)):
    if forecasts[date] == real_weathers[date]:
        correct_number += 1
print(correct_number)

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

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 = list(input())
T = list(input())
ans = 0
for i in range(3):
    if S[i] == T[i]:
        ans += 1
print(ans)

Solution (Python):
x = input()
y = input()

cnt = 0

for i,l in zip(x,y):
  if i == l:
    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=list(input())
T=list(input())
ans=0
for n in range(3):
    if S[n]==T[n]:
        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()

answer = 0

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

print(answer)

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(input())
T = list(input())
answer = 0




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

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

for pre, acc in zip(s, t):
    if pre == acc:
        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()

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

print(res)

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


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

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

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

print(n)

Solution (Python):
forecast = input()
real = input()
ans = 0

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

print(ans)

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

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

print(ans)

Solution (Python):
from sys import stdin
S = input()
T = input()
correct = 0
for i in range(3):
  if S[i] == T[i]:
    correct += 1
print(correct)

Solution (Python):
pred = input()
label = input()
a = 0
for i,j in zip(pred,label):
  if i==j:
    a += 1
print(a)

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

L=[]
i = 0
while  i <= 2:
    if S[i]==T[i]:
        L.extend([i])
    i += 1

print(len(L))

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

Solution (Python):
s = str(input())
t = str(input())
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()
ans = 0
for i in range(len(s)):
    if s[i] == t[i]:
        ans += 1

print(ans)

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

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

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

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

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

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

Solution (Python):
a,b = input(),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):
"""
author : halo2halo
date : 18,Oct,2019
"""

import sys
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

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


print(ans)

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product, accumulate
from operator import itemgetter, mul
from copy import deepcopy,copy
from string import ascii_lowercase, ascii_uppercase, digits
from fractions import gcd

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

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

if  __name__=='__main__':
    main()

Solution (Python):
import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

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()
N = sum(1 if s == t else 0 for s, t in zip(S,T))
print(str(N))

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

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

Solution (Python):
def t(a, b):
    return [i == j for i, j in zip(a, b)].count(True)


if __name__ == '__main__':
    print(t(input(), input()))

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

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

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

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

print(count)

Solution (Python):
yohou=input()
tenki=input()
yohou1=yohou[0]
yohou2=yohou[1]
yohou3=yohou[2]
tenki1=tenki[0]
tenki2=tenki[1]
tenki3=tenki[2]
kekka=[yohou1==tenki1, yohou2==tenki2, yohou3==tenki3]
a=kekka.count(True)
print(a)

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

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())
agree = 0
for i in range(3):
  if S[i] == T[i]:
    agree += 1
print(agree)

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=str(input())
t=str(input())
res=0
for i in range(3):
  if(s[i]==t[i]):
    res+=1
print(res)

Solution (Python):
import sys

T = input()
S = input()

n = 0

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

print(n)

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


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

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

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

print(answer)

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

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

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

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

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

print(ans)

Solution (Python):
import sys

T=input()
S=input()

n = 0

if T[0] == S[0]:
  	n = 1
if T[1] == S[1]:
  	n += 1
if T[2] == S[2]:
  	n += 1

print(n)

Solution (Python):
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

S = readline().rstrip().decode('utf-8')
T = readline().rstrip().decode('utf-8')

answer = sum(x==y for x,y in zip(S,T))
print(answer)

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

point = 0
for s, t in zip(forecast, actual):
	if s==t:
		point += 1
print(point)

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 = input()
T = input()
count=0
for i in range(3):
  if S[i] == T[i]:
    count += 1
print(count)

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

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


if __name__ == '__main__':
    main()

Solution (Python):
S = list(map(str,input()))
T = list(map(str,input()))
count = 0

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

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

count = 0

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

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

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

print(res)

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

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

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

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

print(counter)

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(input())
t = list(input())
count = 0
for i in range(0,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 = 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()
ans = 0
for i in range(3):
  if S[i] == T[i]:
    ans += 1

print(ans)

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

Solution (Python):
S = input()
T = input()
a=0
for i in range(len(S)):
   if S[i]==T[i]:
       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):
import copy

def j(n):
    if n:print("yes")
    else:print("no")
    exit(0)
rem = 10 ** 9 + 7

"""
def ct(x,y):
    if (x>y):print("+")
    elif (x<y): print("-")
    else: print("?")
"""

def ip():
    return int(input())
def iprow():
    return [int(i) for i in input().split()]
def ips():
    return (int(i) for i in input().split())
def ipmultiplerow(n):
    a = []
    for i in range(n):
        a.append(ip())
    return a
def printrow(a):
    for i in a:
        print(i)

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

Solution (Python):

S = input()
T = input()

if S == T:
    print(len(S))
else:
    count = 0
    for i in range(len(S)):
        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 = 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()
answer = 0
for i in range(len(s)):
  if s[i] == t[i]:
    answer += 1
print(answer)

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

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

n = int(0)
i = int(0)

while i < 3:
  if s[i] == t[i]:
    i += 1
    n += 1
  else:
    i += 1

print(n)

Solution (Python):
S = input()
N = input()
A =int(0)
if S[0] == N[0]:
    A += 1
if S[1] == N[1]:
    A += 1
if S[2] == N[2]:
    A += 1
print(A)

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

cnt = 0

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

print(cnt)

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

x = 0

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

print(x)

Solution (Python):
S, T = map(str, open(0).read().split())
count = 0
for i in range(3):
  if S[i] == T[i]:
    count += 1
  else:
    pass
print(count)

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()
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,t=input(),input()
print(len([1 for i in range(3) if s[i]==t[i]]))

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 = list(input())
R = list(input())
count = 0
for i in range(len(S)):
  if S[i] == R[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):
N=input()
T=input()
count=0
for i in range(3):
  if N[i] == T[i]:
    count += 1
print(count)

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

count = 0
for x in range(len(A)):
    if(A[x] == B[x]):
        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()

ans = 0
for s, t in zip(S, T):
    if s == t:
        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):
from sys import stdin
n = 2
inp = [stdin.readline().rstrip() for _ in range(n)]
count = 0
for i in range(3):
  if inp[0][i] == inp[1][i]:
    count += 1
 
print(count)

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

count = 0
for i in [0, 1, 2]:
  if S[i] == T[i]:
    count += 1

print(count)

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

result = 0

if s[0] == t[0]:
    result += 1

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

if s[2] == t[2]:
    result += 1

print(result)

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=0
for i in range(3):
  if s[i]==t[i]:
    ans+=1
print(ans)

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

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


if __name__ == "__main__":
    main()

Solution (Python):
s=input()
S=list(s)
t=input()
T=list(t)
ans=0
for i in range(len(S)):
    if S[i]==T[i]:
        ans=ans+1
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 = str(input())
T = str(input())

a = 0

for x in range(3):
    if S[x] == T[x]:
        a += 1
    else:
        pass

print(a)

Solution (Python):
inputs = [input() for i in range(2)]
day1 = list(inputs[0])
day2 = list(inputs[1])
count = 0
for i in range(3):
    if day1[i] == day2[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()
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(len(S)):
  if S[i] == T[i]:
    cnt+=1
print(cnt)

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

Solution (Python):
p = list(input())
a = list(input())
o = [a[i] for i in range(len(p)) if p[i] == a[i]]
print(len(o))

Solution (Python):
p = list(input())
a = list(input())
o = [a[i] for i in range(len(p)) if p[i] == a[i]]
print(len(o))

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

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

print(a)

Solution (Python):
S = list(input())
T = list(input())
cnt = 0
for i in range(0, 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):
forecast = input()
weather = input()

res = 0

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

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()
cnt = 0
for i in range(len(S)):
  if S[i] == T[i]:
    cnt = cnt + 1
  
  
print(cnt)

Solution (Python):
a,b,c = input()
d,e,f = input()
p = 0
if a == d:
    p += 1
if b == e:
    p += 1
if c == f:
    p += 1
print(p)

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

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

print(c)

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

Solution (Python):

import sys




args = sys.argv
if len(args) == 2:
  from IPython import embed
  em = True
else:
  em = False




S = input()
T = input()









if em: sys.stdin = open('/dev/tty')






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

print(score)

Solution (Python):
F = input()
A = input()
s = 0
s += 1 if F[0] == A[0] else 0
s += 1 if F[1] == A[1] else 0
s += 1 if F[2] == A[2] else 0
print(s)

Solution (Python):
s = input()
t = input()
c=0
if s[0]==t[0]:
  c = c + 1

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

if s[2]==t[2]:
  c = 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()
a=0
for i in range (0,3):
    if s[i]==t[i]:
        a=a+1
print(a)

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)