n=int(input()) r=0 for i,j in zip(input(),input()):r+=i!=j print(r)