#include <bits/stdc++.h>
using namespace std;
inline void init() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}
int n, c[10], x, mi, ma;
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> x;
    for (int j = 0; j <= 3200; j += 400) {
      if (max(1, j) <= x and x < j + 400) {
        c[j / 400]++;
        break;
      } else if (3200 <= x) {
        c[8]++;
        break;
      }
    }
  }
  for (int i = (0); i < (8); ++i) {
    if (c[i] > 0) {
      mi++, ma++;
    }
  }
  if (mi == 0) {
    mi = 1;
    ma = c[8];
  } else {
    ma += min(c[8], (8 - ma));
  }
  cout << mi << " " << ma << endl;
  return 0;
}
