#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(n, 0);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
  vector<int> color(9, 0);
  for (int i = 0; i < n; i++) {
    if (v[i] >= 1 && v[i] < 400) {
      color[0] = 1;
    } else if (v[i] >= 400 && v[i] < 800) {
      color[1] = 1;
    } else if (v[i] >= 800 && v[i] < 1200) {
      color[2] = 1;
    } else if (v[i] >= 1200 && v[i] < 1600) {
      color[3] = 1;
    } else if (v[i] >= 1600 && v[i] < 2000) {
      color[4] = 1;
    } else if (v[i] >= 2000 && v[i] < 2400) {
      color[5] = 1;
    } else if (v[i] >= 2400 && v[i] < 2800) {
      color[6] = 1;
    } else if (v[i] >= 2800 && v[i] < 3200) {
      color[7] = 1;
    } else {
      color[8]++;
    }
  }
  if (color[8] != n) {
    int min_c = 0;
    for (int i = 0; i < 8; i++) {
      min_c += color[i];
    }
    int max_c;
    max_c = min_c + color[8];
    if (max_c > 8) {
      max_c = 8;
    }
    cout << min_c << " " << max_c << endl;
  } else {
    int min_c = 1;
    int max_c = n;
    if (n > 8) {
      max_c = 8;
    }
    cout << min_c << " " << max_c << endl;
  }
}
