#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++) {
    for (int j = 0; j < 9; j++) {
      if (j < 8) {
        if (v[i] / 400 == j) {
          color[j] = 1;
          break;
        }
      } else {
        if (v[i] / 400 >= 8) {
          color[8]++;
        }
      }
    }
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    sum += color[i];
  }
  if (sum == 0) {
    int minc = 1;
    int maxc;
    if (n > 8) {
      maxc = 8;
    } else {
      maxc = n;
    }
    cout << minc << " " << maxc << endl;
  } else {
    int minc = sum;
    int maxc;
    maxc = sum + color[8];
    if (maxc > 8) {
      maxc = 8;
    }
    cout << minc << " " << maxc << endl;
  }
}
