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