input();ans=0 for i,j in zip(input(),input()): ans+=i!=j print(ans)