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



Sample input:
CSS
CSR


Sample output:
2

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

cnt, i = 0, 0

for s in S:
    if s != T[i]:
        cnt += 1
    i += 1

print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
 
## Library
 
import sys
from fractions import gcd
import math
from math import ceil,floor
import collections
from collections import Counter
import itertools
import copy

## input
 
# N=int(input())
# A,B,C,D=map(int, input().split())
# S = input()
# yoko = list(map(int, input().split()))
# tate = [int(input()) for _ in range(N)]
# N, M = map(int,input().split()) 
#    P = [list(map(int,input().split())) for i in range(M)]
#    S = []
#    for _ in range(N):
#        S.append(list(input()))

S = input()
T = input()

ans = 0

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

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a=input()
b=input()
count=0
if a[0]==b[0]:
    count+=1
elif a[1]==b[1]:
    count+=1
elif a[2]==b[2]:
    count+=1
print(count)

Submission status: Wrong Answer

Solution code:
print(sum(int(i==j) for i,j in zip(*open(0))))

Submission status: Wrong Answer

Solution code:
print(sum(i==j for i,j in zip(*open(0))))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
print('test')

Submission status: Wrong Answer

Solution code:
# Template 1.0
import sys, re
from decimal import *
from collections import deque, defaultdict, Counter, OrderedDict
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians, floor, trunc, log
from heapq import heappush, heappop, heapify, nlargest, nsmallest
def STR(): return list(input())
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def list2d(a, b, c): return [[c] * b for i in range(a)]
def sortListWithIndex(listOfTuples, idx):   return (sorted(listOfTuples, key=lambda x: x[idx]))
def sortDictWithVal(passedDic):
    temp = sorted(passedDic.items(), key=lambda kv: (kv[1], kv[0]))
    toret = {}
    for tup in temp:
        toret[tup[0]] = tup[1]
    return toret
def sortDictWithKey(passedDic):
    return dict(OrderedDict(sorted(passedDic.items())))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
mod = 10 ** 9 + 7

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

Submission status: Wrong Answer

Solution code:
a = input("S:")
b = input("T:")
ans = 0
for i in range (0,3):
    if a[i] == b[i]:
        ans += 1
print(ans)

Submission status: Wrong Answer

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

ans = 'Yes'
for i in range(3):
  if a[i] == b[i]:
    continue
  ans = 'No'
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = []
for i in range(2):
    a.append(input())
print(a)

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

Submission status: Wrong Answer

Solution code:
s = input()
t = input()
x = 0
if s[0] == t[0]:
    x += 1
    if s[1] == t[1]:
        x += 1
        if s[2] == t[2]:
            x += 1
print(x)

Submission status: Wrong Answer

Solution code:
s = input()
t = input()
x = 0
if s[0] in t[0]:
    x += 1
    if s[1] in t[1]:
        x += 1
        if s[2] in t[2]:
            x += 1
print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = S[0] ==T[0] + S[1] ==T[1] +S[2] ==T[2]
print(ans)

Submission status: Wrong Answer

Solution code:
S = set(list(input()))
T = set(list(input()))
print(3 - len(S - T))

Submission status: Wrong Answer

Solution code:
s = input()
t = input()
count=0
for i in s:
    for j in t:
        if s==t:
            count+=1
print(count)

Submission status: Wrong Answer

Solution code:
S = list(str(input()))
T = list(str(input()))
ans = 0
if S[0] == T[0]:
    ans += 1
if S[1] == S[1]:
    ans += 1
if S[2] == S[2]:
    ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
S = str(input())
T = str(input())
print(int(S[0]==T[0])+int(S[1]==T[1])+int(S[2]==S[2]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input()
b=input()
a=list(a)
b=list(b)
count=0
for i in a:
    for j in b:
        if i!=j:
            break
        else:
            count+=1
print(count//3)

Submission status: Wrong Answer

Solution code:
a=input()
b=input()
print(a.count(b))

Submission status: Wrong Answer

Solution code:
S=input("天気予報を入力してください")
print()
T=input("実際の天気を入力してください")
return_count=0
for i in range(len(S)):
  if S[i]==T[i]:
    return_count+=1
print()   
print(return_count)

Submission status: Wrong Answer

Solution code:
S=input("天気予報を入力してください")
T=input("実際の天気を入力してください")
return_count=0
for i in range(len(S)):
  if S[i]==T[i]:
    return_count+=1
print()   
print(return_count)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
def f(S,T):
	n=0
	for x,y in zip(S,T):
		if x==y:
			n+=1
	return n

Submission status: Wrong Answer

Solution code:
s=list(input())
t=list(input())
n=0
if s[0]==t[0]:
    n+=1
    if s[1]==t[1]:
        n+=1
        if s[2]==t[2]:
            n+=1
print(n)

Submission status: Wrong Answer

Solution code:
S = input()
T = input()
x = 0
for i in range(0, 2):
 if S[i] == T[i]:
   x = x + 1

print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = str(input())
t = str(input())
cnt = 0
for i in range(0,2):
  if s[i] == t[i]:
    cnt += 1
print(int(cnt))

Submission status: Wrong Answer

Solution code:
S=input()
T=input()
def f(S,T):
    if S[0]==T[0] or S[1]==T[1] or S[2]==T[2]:
        return 1
    else:
        return 0
print(f(S,T))

Submission status: Wrong Answer

Solution code:
s=set(input())
t=set(input())
print(len(s&t))

Submission status: Wrong Answer

Solution code:
from sys import stdin
A = input()
B = input()
p = 0

for i in range(len(A)):
    if A[i] == B[i]:
        p =+ 1

print(p)

Submission status: Wrong Answer

Solution code:
from sys import stdin
A = list(stdin.readline().rstrip())
B = list(stdin.readline().rstrip())
p = 0

for i in range(len(A)):
    if A[i] == B[i]:
        p =+ 1

print(p)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input()
T = input()
if S[0] == T[0] and S[1] == T[1] and S[2] == T[2]:
    print(3)
elif S[0] == T[0] and S[1] == T[1]:
    print (2)
elif S[0] == T[0] and S[2] == T[2]:
    print (2)
elif S[0] == T[0] or S[1] == T[1] or S[2]==T[2]:
    print (1)
else:
    print (0)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s,t=open(0).read().split();print(sum([j==i for i in s for j in t]))

Submission status: Wrong Answer

Solution code:
S = input()
T = input()
 
score = 0
if S[0] == T[0]: 
	score = score + 1
elif S[1] == T[1]: 
	score = score + 1
elif S[2] == T[2]: 
	score = score + 1
 
print(score)

Submission status: Wrong Answer

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

score = 0
if S[0] == T[0]:
	score = score + 1

elif S[1] == T[1]:
	score = score + 1

elif S[2] == T[2]:
	score = score + 1
    
print(score)

Submission status: Wrong Answer

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

score =0
if S[0] == T[0]:
	score = score + 1

elif S[1] == T[1]:
	score = score + 1

elif S[2] == T[2]:
	score = score + 1
    
print(score)

Submission status: Wrong Answer

Solution code:
import sys

S = [x for x in sys.stdin.readline()]
T = [x for x in sys.stdin.readline()]

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

print(result)

Submission status: Wrong Answer

Solution code:
import sys

S = [x for x in sys.stdin.readline()]
T = [x for x in sys.stdin.readline()]

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

print(result)

Submission status: Wrong Answer

Solution code:
s = list(input())
t = list(input())
ing_total = 0

for x in range(2):
    if s[x] == t[x]:
        ing_total+=1
    else:
        ing_total+=0
print(ing_total)

Submission status: Wrong Answer

Solution code:
s = list(input())
t = list(input())
ing_total = 0

for x in range(2):
    if s[x] == t[x]:
        ing_total+=1
        print(ing_total)

Submission status: Wrong Answer

Solution code:
s = str(input())
t = str(input())
l1 = set(s) & set(t)
print(len(l1))

Submission status: Wrong Answer

Solution code:
a = input().split()
b = input().split()

print(len([True for x,y in zip(a,b) if x==y]))

Submission status: Wrong Answer

Solution code:
S = input().split()
T = input().split()
C = 0
for i in range(len(S)):
    if S[i] == T[i]:
        C += 1
print(C)

Submission status: Wrong Answer

Solution code:
ex=list(input())
wea=list(input())
days=0

for let in wea:
    if let==ex[wea.index(let)]:
        days+=1

print(days)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S=input()
T=input()
print(S.count(T))

Submission status: Wrong Answer

Solution code:
s = input()
t = input()
cnt = 0
if s[0]==t[0]: cnt+=1
elif s[1]==t[1]: cnt+=1
elif s[2]==t[2]: cnt+=1
print(cnt)

Submission status: Wrong Answer

Solution code:
S = list(input())
T = list(input())
uncommon = set(S) ^ set(T)
d = 3 - len(uncommon)
print(d)

Submission status: Wrong Answer

Solution code:
S = list(input())
T = list(input())
common = set(S) & set(T)
print(len(common))

Submission status: Wrong Answer

Solution code:
a=list(input())
b=list(input())
count=0
for i in range (2):
  if a[i]==b[i]:
    count+=1
    exit()
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

judgelist = []

if S[0] == T[0]:
    judgelist.append(1)
if S[1] == T[1]:
    judgelist.append(1)
if S[2] == S[2]:
    judgelist.append(1)

print(sum(judgelist))

Submission status: Wrong Answer

Solution code:
*A, = input()
*B, = input()
ans = 0
if A[0] == B[0]:
  ans += 1
elif A[1] == B[1]:
  ans += 1
elif A[2] == B[2]:
  ans += 1
print(ans)

Submission status: Wrong Answer

Solution code:
def main():
    s = list(input().split())
    t = list(input().split())
    res = 0
    for i in range(len(s)):
        if s[i] == t[i]:
            res += 1

    print(res)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

x = 0

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

print(x)

Submission status: Wrong Answer

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

x = 0

for i in range(2):
    if s[i] == t[i]:
        x = x + 1

print(x)

Submission status: Wrong Answer

Solution code:
s = input()
t = input()
count = 0

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


print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())
T = str(input())
ans = 0

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

Submission status: Wrong Answer

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

n = 0
for i in range (0, 2):
  if a[i] == b[i]:
    n += 1

print(n)

Submission status: Wrong Answer

Solution code:
S = input().split()
T = input().split()
ret = 0
for i in range(len(S)):
    if S[i] == T[i]:
        ret += 1
print(ret)

Submission status: Wrong Answer

Solution code:
S=list(str(input()))
T=list(str(input()))
p=0

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

Submission status: Wrong Answer

Solution code:
S=list(str(input()))
T=list(str(input()))
i=0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print (result)

Submission status: Wrong Answer

Solution code:
S=list(str(input()))
T=list(str(input()))
ans=0
for i in range(3):
    if S[i+1:i+2]==T[i+1:i+2]:
        ans+=1
    else:
        pass
print(ans)

Submission status: Wrong Answer

Solution code:
S=list(map(str, input().split()))
T=list(map(str, input().split()))
ans=0
for i in range(3):
    if S[i:i+1]==T[i:i*+1]:
        ans+=1
    else:
        pass
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S_list = list(input())

T_list = list(input())

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

print(l)

Submission status: Wrong Answer

Solution code:
S_list = list(input())
print(S_list)

T_list = list(input())
print(T_list)

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

print(l)

Submission status: Wrong Answer

Solution code:
from collections import Counter
print(len((Counter(input())&Counter(input()))))

Submission status: Wrong Answer

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

result = 0

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

print (result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

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

#print(s);
#print(t);

count_t = 1;
count_all =0;
if s == t:
    print(3);

else:
    for i in s:
        #print(i);
        #print(t.startswith(i));
        strValue = t.count(i); #一致文字数
        if strValue == 0:
            continue;
        else:
            if t.startswith(i):
                strValue -=1;
                if count_t ==1:
                    count_all +=1;
                    #print('count_all');

            if t.endswith(i):
                strValue -=1;
                if count_t ==3:
                    count_all +=1;

            if count_t == 2:
                if strValue ==1:
                    count_all +=1;
                    #print('count_all');
            count_t +=1;
    print(count_all);
# TODO: write code...

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

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

#print(s);
#print(t);

count_t = 1;
count_all =0;
if s == t:
    print(3);

else:
    for i in s:
        #print(i);
        #print(t.startswith(i));
        strValue = t.count(i); #一致文字数
        if strValue == 0:
            continue;
        else:
            if t.startswith(i):
                strValue -=1;
                if count_t ==1:
                    count_all +=1;
                    #print('count_all');

            if t.endswith(i):
                strValue -=1;
                if count_t ==3:
                    count_all +=1;

            if count_t == 2:
                if strValue ==1:
                    count_all +=1;
                    print('count_all');
            count_t +=1;
    print(count_all);
# TODO: write code...

Submission status: Wrong Answer

Solution code:
S = list(input())
T = list(input())
answer = 0

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

Submission status: Wrong Answer

Solution code:
a = str(input())#入力S
b = str(input())#入力T
n = 0
x = 0
for sa in a:	
  if sa == b[n]:
    x +=1
  else:
    continue
  n +=1
print(x)

Submission status: Wrong Answer

Solution code:
a = str(input())#入力S
b = str(input())#入力T
n = 0
for sa in a:	
  if sa == b[n]:
    print(sa+'='+b[n])
  else:
    print(sa+'≠'+b[n])
  n +=1

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a = 0

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

print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
yohou = list(input())
tenki = list(input())

cnt = 0
for i in range(0,2):
    if yohou[i]==tenki[i]:
        cnt = cnt+1
    else:
        pass
print(cnt)

Submission status: Wrong Answer

Solution code:
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
ans

Submission status: Wrong Answer

Solution code:
S=str(input())
T=str(input())
ans=0
if S[0]==T[0]:
    ans+=1
if S[1]==T[1]:
    ans+=1
if S[2]==T[2]:
    ans+=1
ans

Submission status: Wrong Answer

Solution code:
S=str(input())
T=str(input())
ans=0
if S[0]==T[0]:
	ans+=1
if S[1]==T[1]:
	ans+=1
if S[2]==T[2]:
	ans+=1
ans

Submission status: Wrong Answer

Solution code:
S=str(input())
T=str(input())
ans=0
if S[0]==T[0]:
	ans += 1
if S[1]==T[1]:
	ans += 1
if S[2]==T[2]:
	ans += 1
ans

Submission status: Wrong Answer

Solution code:
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
ans

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b,c=input()
d,e,f=input()
list=[1 if a==d else 0,1 if a==d else 0,1 if a==d else 0]
print(list.count(1))

Submission status: Wrong Answer

Solution code:
#139 Tenki
print(len(list(set(input()) & set(input()))))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s=map(str, input().split())
t=map(str, input().split())
c = 0
for i in range(3):
    c = c + 1
print(c)

Submission status: Wrong Answer

Solution code:
s=map(str, input().split())
t=map(str, input().split())
c = 0
print(c)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
s=input()
t=input()
num=0

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

num

Submission status: Wrong Answer

Solution code:
T = input("T")
S = input("S")
n=0
for i in range(len(T)):
    if T[i] == S[i]:
        n= n+1;
print(n)

Submission status: Wrong Answer

Solution code:
x = input("Enter the forecast: ")
y = input("Enter the actual weather: ")

success=0
for cnt in range(3):
    if x[cnt]==y[cnt]:
        success+=1
    
print(success)

Submission status: Wrong Answer

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

s1 = s[0]
s2 = s[1]
s3 = s[2]

t1 = t[0]
t2 = t[1]
t3 = t[2]

count = 0
if s1 == t1:
    count = count + 1
    if s2 == t2:
        count = count +1
        if s3 == t3:
            count = count +1

print(count)

Submission status: Wrong Answer

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

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

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

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

print(count)

Submission status: Wrong Answer

Solution code:
s=input()
t=input()
sum=0;

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

Submission status: Wrong Answer

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


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

print(cnt)

Submission status: Wrong Answer

Solution code:
s = input().split()
t = input().split()

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

print(cnt)

Submission status: Wrong Answer

Solution code:
S = list(input())
T = list(input())
#これとは違う
#S = [input()]
#T = [input()]
count = 0
for i in range(len(S)):
    if S[i] == T[i]:
        count += 1
print(count)
print(S,T)

Submission status: Wrong Answer

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

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

print(ans)

Submission status: Wrong Answer

Solution code:
a=0
b=0
c=0
s=('input()')
t=('input()')
if (s[0]) == (t[0]):
   a=1
if (s[1]) == (t[1]):
   b=1
if (s[2]) == (t[2]):
   c=1
print(a+b+c)

Submission status: Wrong Answer

Solution code:
a=0
b=0
c=0
s=('(input())')
t=('(input())')
if (s[0]) == (t[0]):
   a=1
if (s[1]) == (t[1]):
   b=1
if (s[2]) == (t[2]):
   c=1
print(a+b+c)

Submission status: Wrong Answer

Solution code:
S = str(input())
T = str(input())
c = 0
for a in S:
    for b in T:
        if a == b:
            c += 1
print(c)

Submission status: Wrong Answer

Solution code:
S = input()
T = input()
c = 0
for a in S:
    for b in T:
        if a == b:
            c += 1
print(c)

Submission status: Wrong Answer

Solution code:
S = input()
T = input()
c = 0
for a in S:
    for b in T:
        if a ==b:
            c +=1
print(c)

Submission status: Wrong Answer

Solution code:
1

Submission status: Wrong Answer

Solution code:

a = input()
b = input()

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = str(input())
T = str(input())
# 出力
A = 0

for i in range(3):
    print("{} {}".format(S[i],T[i]))
    if S[i] == T[i]:
        A += 1

print(A)

Submission status: Wrong Answer

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

count = 0

for i in range(3):
  count += 1
  print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

ans = 0

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

print(ans)

Submission status: Wrong Answer

Solution code:
print("aa")

Submission status: Wrong Answer

Solution code:
a = input()
b = input()
c = 0
for i in a:
  for j in b:
    if i == j:
      c += 1
print(c)

Submission status: Wrong Answer

Solution code:
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
caonima(yk,js)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

flag=0

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

print(i)

Submission status: Wrong Answer

Solution code:
cou = 0
S=input()
T=input()
Sl=list(S)
Tl=list(T)
for i in Sl:
  ir = i
  for j in Tl:
    if ir == j:
      cou += 1
print(cou)

Submission status: Wrong Answer

Solution code:
# your code goes here
s,t = input(), input()

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
s = list(input())
t = list(input())
num = 0
for i in range(2):
    if s[i] == t[i]:
        num += 1
        break
print(num)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
S = input().split()
T = input().split()
count = 0
for tenkiS in S:
    for tenkiT in T:
        if tenkiS == tenkiT:
            count += 1
print(count)

Submission status: Wrong Answer

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

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

print(i)