#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  vector<bool> flg(8, false);
  int cnt_f = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] < 399) {
      flg[0] = true;
    } else if (a[i] < 799) {
      flg[1] = true;
    } else if (a[i] < 1199) {
      flg[2] = true;
    } else if (a[i] < 1599) {
      flg[3] = true;
    } else if (a[i] < 1999) {
      flg[4] = true;
    } else if (a[i] < 2399) {
      flg[5] = true;
    } else if (a[i] < 2799) {
      flg[6] = true;
    } else if (a[i] < 3199) {
      flg[7] = true;
    } else {
      cnt_f++;
      for (int j = 0; j < 8; j++) {
        if (!flg[j]) {
          flg[j] = true;
          break;
        }
      }
    }
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (flg[i]) {
      cnt++;
    }
  }
  if (cnt == cnt_f) {
    cout << 1 << " " << cnt << endl;
    return 0;
  }
  cout << cnt - cnt_f << " " << cnt << endl;
  return 0;
}
