#!/usr/bin/env python3 #fileencoding: utf-8 n = int(input()) print(sum([1 if i != j else 0 for i, j in zip(input(),input())]))