#include <bits/stdc++.h>
using namespace std;
template <typename T>
istream& operator>>(istream& is, vector<T>& vec) {
  for (T& x : vec) is >> x;
  return is;
}
int d[100000 * 3];
int main() {
  int n;
  cin >> n;
  int m = 0;
  for (int i = 0; i < n; i++) {
    int buf;
    cin >> buf;
    if (buf < 3200)
      d[buf / 400]++;
    else
      m++;
  }
  int a = 0;
  for (int i = 0; i < 8; i++) {
    if (d[i] > 0) a++;
  }
  cout << a << " " << a + m << endl;
}
