#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int N, count = 0, over = 0;
  bool kind[8];
  vector<int> vec;
  for (int i = 0; i < 8; ++i) {
    kind[i] = false;
  }
  cin >> N;
  vec.resize(N);
  for (int i = 0; i < N; ++i) {
    int k;
    cin >> vec[i];
  }
  sort(vec.begin(), vec.end());
  for (int i = 0; i < N; ++i) {
    int k = vec[i];
    if (1 <= k && k <= 399) kind[0] = true;
    if (400 <= k && k <= 799) kind[1] = true;
    if (800 <= k && k <= 1199) kind[2] = true;
    if (1200 <= k && k <= 1599) kind[3] = true;
    if (1600 <= k && k <= 1999) kind[4] = true;
    if (2000 <= k && k <= 2399) kind[5] = true;
    if (2400 <= k && k <= 2799) kind[6] = true;
    if (2800 <= k && k <= 3199) kind[7] = true;
    if (3200 <= k) ++over;
  }
  for (int j = 0; j < 8; ++j) {
    if (kind[j]) ++count;
  }
  if (count == 0) {
    cout << 1;
  } else {
    cout << count;
  }
  cout << " ";
  if (count + over <= 8) {
    cout << count + over << endl;
  } else {
    cout << 8 << endl;
  }
  return 0;
}
