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