#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2>
inline bool chmin(T1 &a, T2 b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T1, typename T2>
inline bool chmax(T1 &a, T2 b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
int n;
int main() {
  cin >> n;
  int maxres = 0;
  int minres = 0;
  vector<int> color(9, 0);
  for (long long i = 0; i < (n); i++) {
    int rate;
    cin >> rate;
    rate /= 400;
    if (rate >= 8) {
      color[8]++;
    } else {
      color[rate]++;
    }
  }
  for (long long i = 0; i < (8); i++) {
    if (color[i] > 0) {
      minres++;
    }
  }
  maxres = minres + color[8];
  cout << minres << " " << maxres << endl;
  return 0;
}
