#!/usr/bin/python n = int(raw_input()) s = raw_input() t = raw_input() res = sum(s[i] != t[i] for i in xrange(n)) print res