#import 

s=eval(input())

t=eval(input())

#=int(input())

#=map(str,input().split())

#=list(map(int,input().split()))

#=[list(map(int,input().split())) for _ in range()]



cnt = 0

i = 0

while i <= (len(s)-1):

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

        cnt += 1

    i += 1

print(cnt)
#import 

s=eval(input())

t=eval(input())

#=int(input())

#=map(int,input().split())

#=list(map(int,input().split()))

#=[list(map(int,input().split())) for _ in range()]



cnt = 0

for i in range(len(s)):

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

        cnt += 1

print(cnt)
# import
s = eval(input())
t = eval(input())
# =int(input())
# =map(str,input().split())
# =list(map(int,input().split()))
# =[list(map(int,input().split())) for _ in range()]
cnt = 0
i = 0
while i <= (len(s) - 1):
    if s[i] != t[i]:
        cnt += 1
    i += 1
print(cnt)

# import
s = eval(input())
t = eval(input())
# =int(input())
# =map(int,input().split())
# =list(map(int,input().split()))
# =[list(map(int,input().split())) for _ in range()]
cnt = 0
for i in range(len(s)):
    if s[i] != t[i]:
        cnt += 1
print(cnt)

-# =map(str,input().split()) +# =map(int,input().split()) -i = 0 -while i <= (len(s) - 1): +for i in range(len(s)): -    i += 1