S = eval(input())

T = eval(input())

count = 0

for i in range(len(S)):

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

    count += 1

print(count)
S, T = [eval(input()) for _ in range(2)]

count = 0

for i, j in zip(S, T):

    count += i != j

print(count)

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

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

-S = eval(input()) -T = eval(input()) +S, T = [eval(input()) for _ in range(2)] -for i in range(len(S)): -    if S[i] != T[i]: -        count += 1 +for i, j in zip(S, T): +    count += i != j