# coding: utf-8 # yukicoder No.224 文字列変更(easy) n = int(input()) S = input() T = input() count = 0 for (a,b) in zip(S,T): if a != b: count += 1 print(count)