#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false), cin.tie(0);
  ;
  int n, a, i, j;
  cin >> n;
  int ex = 0, rank[8] = {0};
  for (i = 0; i < n; i++) {
    cin >> a;
    for (j = 1; j <= 8; j++) {
      if (a < 400 * j) {
        rank[j - 1]++;
        break;
      }
    }
    if (a >= 3200) ex += 1;
  }
  int ctr = 0;
  for (i = 0; i < 8; i++) {
    if (rank[i]) ctr++;
  }
  cout << ctr << " " << ctr + ex << '\n';
}
