n=input() print(sum(1 for i,j in zip(input(),input()) if i!=j))