#include <bits/stdc++.h>
using namespace std;
int n;
string s, m;
int cnt1[11], cnt2[11];
int main() {
  cin >> n >> s >> m;
  for (int i = 0; i < n; ++i) {
    cnt1[m[i] - '0']++;
    cnt2[m[i] - '0']++;
  }
  int ans1 = 0, ans2 = 0;
  for (int i = 0; i < n; ++i) {
    int cur = s[i] - '0';
    bool flag = false;
    for (int j = cur; j <= 9; ++j)
      if (cnt1[j]) {
        --cnt1[j];
        flag = true;
        break;
      }
    if (!flag) ++ans1;
  }
  for (int i = 0; i < n; ++i) {
    int cur = s[i] - '0';
    for (int j = cur + 1; j <= 9; ++j)
      if (cnt2[j]) {
        --cnt2[j];
        ++ans2;
        break;
      }
  }
  cout << ans1 << endl << ans2;
  return 0;
}
