n = int(input()) S = input() T = input() should_check = S != T manipulation_cnt = 0 if should_check: for idx,st in enumerate(zip(S,T)): s,t = st if s != t: manipulation_cnt+=1 print(manipulation_cnt)