#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> s(n, 0);
  vector<int> m(n, 0);
  map<int, int> freq, freq2;
  string sher, mori;
  cin >> sher;
  cin >> mori;
  for (int i = 0; i < n; i++) {
    s[i] = sher[i] - '0';
  }
  for (int i = 0; i < n; i++) {
    m[i] = mori[i] - '0';
    freq[m[i]] += 1;
    freq2[m[i]] += 1;
  }
  int sflick = 0;
  for (int i = 0; i < n; i++) {
    for (int j = (s[i] + 1) % 10;; j = (j + 1) % 10) {
      if (freq.find(j) != freq.end() && freq[j] > 0) {
        freq[j]--;
        if (j > s[i]) sflick++;
        break;
      }
    }
  }
  int mflick = 0;
  for (int i = 0; i < n; i++) {
    for (int j = s[i];; j = (j + 1) % 10) {
      if (freq2.find(j) != freq2.end() && freq2[j] > 0) {
        freq2[j]--;
        if (j < s[i]) mflick++;
        break;
      }
    }
  }
  cout << mflick << " " << sflick << endl;
  return 0;
}
