#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> V(N);
  for (int i = 0; i < N; i++) {
    cin >> V.at(i);
    V.at(i) /= 400;
  }
  vector<int> Clr(9, 0);
  for (int i = 0; i < N; i++) {
    int x = V.at(i);
    Clr.at(x)++;
  }
  int min = 0;
  for (int j = 0; j < 8; j++) {
    int y = Clr.at(j);
    if (y > 0) {
      min++;
    }
  }
  cout << min;
  int Max = 0;
  if (min == 0) {
    Max = 1;
  }
  Max = min + Clr.at(8);
  cout << " " << Max << endl;
}
