import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N,S,T = read().split() answer = sum(x != y for x,y in zip(S,T)) print(answer)