def main(): count = int(input()) l1 = list(input()) l2 = list(input()) ans = 0 for i in range(count): if l1[i] != l2[i]: ans += 1 print(ans) if __name__ == '__main__': main()