#include <bits/stdc++.h>
using namespace std;
int n;
string s, m;
int main() {
  cin >> n;
  cin >> s >> m;
  int ar[10] = {0};
  int ar2[10] = {0};
  for (int i = 0; i < n; i++) {
    int y = m[i] - 48;
    ar[y]++;
    ar2[y]++;
  }
  int ans1 = 0;
  for (int i = 0; i < n; i++) {
    int x = s[i] - 48;
    int ind = 0;
    for (int j = x; j < 10; j++) {
      if (ar[j] > 0) {
        ar[j]--;
        ind = 1;
        break;
      }
    }
    if (ind == 0) ans1++;
  }
  int ans2 = 0;
  for (int i = 0; i < n; i++) {
    int x = s[i] - 48;
    for (int j = x + 1; j < 10; j++) {
      if (ar2[j] > 0) {
        ans2++;
        ar2[j]--;
        break;
      }
    }
  }
  cout << ans1 << endl;
  cout << ans2 << endl;
  return 0;
}
