print(sum(a!=b for a,b in zip(input(),input())))