# -*- coding:utf-8 -*- if __name__ == '__main__': n = int(input()) S = input() T = input() print(sum(1 for s, t in zip(S, T) if s != t))