#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.sync_with_stdio(false);
  long long i, j, k, l, a[1009], c, v, b[1009], aa[30], bb[30], n, m, m1;
  memset(aa, 0, sizeof aa);
  memset(bb, 0, sizeof bb);
  string s, s1;
  while (cin >> n) {
    memset(aa, 0, sizeof aa);
    memset(bb, 0, sizeof bb);
    cin >> s >> s1;
    i = 0;
    for (i = 0; i < s.size(); i++) {
      m = s[i] - 48;
      k = m;
      a[i] = k;
      aa[k]++;
      m1 = s1[i] - 48;
      k = m1;
      b[i] = k;
      bb[k]++;
    }
    sort(a, a + i);
    sort(b, b + i);
    c = 0;
    v = 0;
    for (i = 9; i >= 0; i--) {
      if (aa[i] >= bb[i]) {
        m = aa[i] - bb[i];
        if (m >= v) {
          c += m - v;
          v = 0;
        } else
          v -= m;
      } else {
        v += bb[i] - aa[i];
      }
    }
    cout << c << endl;
    c = 0;
    c += aa[9];
    v = 0;
    for (i = 8; i >= 0; i--) {
      if (aa[i] >= bb[i + 1]) {
        m = aa[i] - bb[i + 1];
        if (m > v) {
          c += m - v;
          v = 0;
        } else
          v -= m;
      } else {
        v += bb[i + 1] - aa[i];
      }
    }
    cout << n - c;
  }
}
