#Transform
def find(a,b,l_diff):
    for i in range(len(a)):
        if not a[i] in b:
            d+=1
    return l_diff
a,b = input().split()
l_diff = abs(len(b)-len(a))
if a==b:
    print(0)
else:
    if len(a)>len(b):
        print(find(b,a,l_diff))
    else:
        print(find(a,b,l_diff))

cdbddd429c2f60020797c16e639306ba6ba78736
<mask token>

def find(a, b, l_diff):
    for i in range(len(a)):
        if not a[i] in b:
            d += 1
    return l_diff


<mask token>

def find(a, b, l_diff):
    for i in range(len(a)):
        if not a[i] in b:
            d += 1
    return l_diff


<mask token>
if a == b:
    print(0)
elif len(a) > len(b):
    print(find(b, a, l_diff))
else:
    print(find(a, b, l_diff))

def find(a, b, l_diff):
    for i in range(len(a)):
        if not a[i] in b:
            d += 1
    return l_diff


a, b = input().split()
l_diff = abs(len(b) - len(a))
if a == b:
    print(0)
elif len(a) > len(b):
    print(find(b, a, l_diff))
else:
    print(find(a, b, l_diff))

#Transform
def find(a,b,l_diff):
    for i in range(len(a)):
        if not a[i] in b:
            d+=1
    return l_diff
a,b = input().split()
l_diff = abs(len(b)-len(a))
if a==b:
    print(0)
else:
    if len(a)>len(b):
        print(find(b,a,l_diff))
    else:
        print(find(a,b,l_diff))
