#include <bits/stdc++.h>
using namespace std;
int n;
vector<int> a[9];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    int ai;
    cin >> ai;
    for (int j = 0; j < 8; j++) {
      if (400 * j <= ai && ai < 400 * (j + 1)) {
        a[j].push_back(ai);
      }
    }
    if (ai >= 3200) {
      a[8].push_back(ai);
    }
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (a[i].size() >= 1) {
      count += 1;
    }
  }
  int l = count;
  count += a[8].size();
  count = min(9, count);
  cout << l << " " << count << endl;
}
