# coding=utf-8: n = int(input()) s = str(input()) t = str(input()) c = 0 for s1, s2 in zip(s, t): if s2 != s1: c += 1 print(c)