int main(){ int n=0,i=0; char s[1001],t[1001]; scanf("%*d%s%s",s,t); while(s[i])s[i]-t[i++]&&n++; printf("%d",n); return 0; }