#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const long long INF = 1LL << 60;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<bool> color(13);
  for (int i = 0; i < (int)(13); i++) color.at(i) = false;
  int colorcount = 0;
  int colorful = 0;
  for (int i = 0; i < (int)(n); i++) {
    cin >> a.at(i);
    a.at(i) /= 400;
    if (!color.at(i) && a.at(i) < 8) {
      color.at(i) = true;
      colorcount++;
    } else if (a.at(i) >= 8) {
      color.at(i) = true;
      colorful++;
    }
  }
  cout << colorcount << " " << min(8, colorcount + colorful) << endl;
}
