s = eval(input())

t = eval(input())

ans = 0

for i in range(len(s)):

    if s[i] != t[i]: ans += 1

print(ans)

s, t = eval(input()), eval(input())

print((len([*[x for x in range(len(s)) if s[x]!=t[x]]])))

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

s, t = eval(input()), eval(input())
print((len([*[x for x in range(len(s)) if s[x] != t[x]]])))

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