s = eval(input())

t = eval(input())

print((sum([s[i] != t[i] for i in range(len(s))])))
print((sum([s != t for s, t in zip(eval(input()), eval(input()))])))

s = eval(input())
t = eval(input())
print((sum([s[i] != t[i] for i in range(len(s))])))

print((sum([s != t for s, t in zip(eval(input()), eval(input()))])))

-s = eval(input()) -t = eval(input()) -print((sum([s[i] != t[i] for i in range(len(s))]))) +print((sum([s != t for s, t in zip(eval(input()), eval(input()))])))