#include <bits/stdc++.h>
using namespace std;
template <typename T1, typename T2>
inline void chmin(T1 &a, T2 b) {
  if (a > b) a = b;
}
template <typename T1, typename T2>
inline void chmax(T1 &a, T2 b) {
  if (a < b) a = b;
}
template <typename T>
T gcd(T a, T b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  set<int> color;
  int n;
  cin >> n;
  int c = 0;
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    if (a >= 3200) {
      c++;
      continue;
    }
    for (int j = 0; j < (8); ++j) {
      if ((j == 0 ? 1 : 400 * j <= a) && a < 400 * (j + 1)) {
        color.insert(j);
        break;
      }
    }
  }
  cout << (int)color.size() << " " << c + (int)color.size() << endl;
}
