N = int(input()) S = list(input()) T = list(input()) for s, t in zip(S, T): N -= s == t print(N)