#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> deta(n), color(9);
  for (int i = 0; i < n; i++) {
    cin >> deta[i];
    deta[i] /= 400;
    color[deta[i]]++;
  }
  int A = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) A++;
  }
  cout << A << ' ' << A + color[8] << endl;
}
