#coding: utf-8 ##yuki_224 n=int(raw_input()) s=raw_input() t=raw_input() ls=list(s[:n]) lt=list(t[:n]) count=0 for i in range(n): if ls[i]!=lt[i]: count+=1 print count