#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int N, a;
  cin >> N;
  vector<int> col(9);
  int cnt = 0;
  int Min, Max;
  for (int i = 0; i < (N); ++i) {
    cin >> a;
    if (a / 400 >= 8)
      ++col.at(8);
    else
      ++col.at(a / 400);
  }
  for (int i = 0; i < (8); ++i)
    if (col.at(i)) ++cnt;
  if (cnt == 0)
    Min = 1;
  else
    Min = cnt;
  Max = min(9, cnt + col.at(8));
  cout << Min << " " << Max << endl;
}
