s = eval(input())

t = eval(input())



count = 0

for i in range(len(s)):

    if 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 = eval(input())
t = eval(input())
count = 0
for i in range(len(s)):
    if 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)

-count = 0 +cnt = 0 -        count += 1 -print(count) +        cnt += 1 +print(cnt)