#coding:utf-8 n=input() S=list(raw_input()) T=list(raw_input()) cnt=0 for i in range(n): if S[i]!=T[i]: S[i]=T[i] cnt+=1 print cnt