#include <bits/stdc++.h>
using namespace std;
template <typename T>
inline void output(T a, int p = 0) {
  if (p)
    cout << fixed << setprecision(p) << a << "\n";
  else
    cout << a << "\n";
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  int N;
  cin >> N;
  vector<int> A(8, 0);
  int B = 0;
  for (int i = (int)(0); i < (int)(N); ++i) {
    int a;
    cin >> a;
    if (1 <= a && a <= 3199) {
      A[a / 400]++;
    } else {
      B++;
    }
  }
  int mi = 0;
  for (int i = (int)(0); i < (int)(8); ++i) {
    if (A[i] > 0) mi++;
  }
  cout << mi << " " << mi + B << endl;
  return 0;
}
