S = list(eval(input()))

T = list(eval(input()))

count = 0

for i in range(len(S)):

    if S[i] != T[i]:

        S[i] = T[i]

        count += 1

print(count)
S = eval(input())

T = eval(input())

cnt = 0

for i in range(len(S)):

  if S[i] != T[i]:

    cnt+=1

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

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

-S = list(eval(input())) -T = list(eval(input())) -count = 0 +S = eval(input()) +T = eval(input()) +cnt = 0 -        S[i] = T[i] -        count += 1 -print(count) +        cnt += 1 +print(cnt)