N=input() A=input() B=input() C="".join(' ' if a==b else '1' for a,b in zip(A,B)) print(len(C.split()))