# -*- coding: utf-8 -*- n = int(input()) s = list(input()) t = list(input()) diff = 0 for i in range(n): if s[i] != t[i]: diff += 1 print(diff)