#!/usr/bin/env python3 #fileencoding: utf-8 n = int(input()) d = {} for i in input(): d[i] = d.get(i,0) + 1 for i in input(): d[i] = d.get(i,1) - 1 print(sum([abs(i) for i in d.values()]))