#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<int> v;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int k;
    cin >> k;
    v.push_back(k);
  }
  int col[9] = {};
  for (int i = 0; i < n; i++) {
    if (v[i] <= 3199) {
      col[v[i] / 400] = 1;
    } else {
      col[8] += 1;
    }
  }
  if (col[8] != 0) {
    int sum = 0;
    for (int i = 0; i < 8; i++) {
      sum += col[i];
    }
    cout << sum << " " << min(n, 8) << endl;
  } else {
    int sum = 0;
    for (int i = 0; i < 8; i++) {
      sum += col[i];
    }
    cout << sum << " " << sum << endl;
  }
}
