import sys

import heapq

import math

import fractions

import bisect

import itertools

from collections import Counter

from collections import deque

from operator import itemgetter

def input(): return sys.stdin.readline().strip()

def mp(): return list(map(int,input().split()))

def lmp(): return list(map(int,input().split()))



s=eval(input())

t=eval(input())

ans=0

for i in range(len(s)):

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

        ans+=1

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

t=eval(input())

ans=0

for i in range(len(s)):

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

        ans+=1

print(ans)
import sys
import heapq
import math
import fractions
import bisect
import itertools
from collections import Counter
from collections import deque
from operator import itemgetter


def input():
    return sys.stdin.readline().strip()


def mp():
    return list(map(int, input().split()))


def lmp():
    return list(map(int, input().split()))


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

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

-import sys -import heapq -import math -import fractions -import bisect -import itertools -from collections import Counter -from collections import deque -from operator import itemgetter - - -def input(): -    return sys.stdin.readline().strip() - - -def mp(): -    return list(map(int, input().split())) - - -def lmp(): -    return list(map(int, input().split())) - -