#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
int main() {
  int n;
  cin >> n;
  vector<int> a(n, 0);
  vector<int> b;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 3200) b.push_back(a[i] / 400);
  }
  sort(b.begin(), b.end());
  b.push_back(-1);
  int c = 0;
  for (int i = 0; i < b.size() - 1; i++) {
    if (b[i] != b[i + 1]) ++c;
  }
  cout << c << " " << c + (n - b.size() + 1) << endl;
}
