s, t = [eval(input()) for i in range(2)]

ans = 0

for i in range(len(s)):

  if s[i] != t[i]:

    ans += 1

print(ans)
s = eval(input())

t = eval(input())



cnt = 0

for i, j in zip(s, t):

    if i != j:

        cnt += 1

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

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

-s, t = [eval(input()) for i in range(2)] -ans = 0 -for i in range(len(s)): -    if s[i] != t[i]: -        ans += 1 -print(ans) +s = eval(input()) +t = eval(input()) +cnt = 0 +for i, j in zip(s, t): +    if i != j: +        cnt += 1 +print(cnt)