#include <bits/stdc++.h>
using namespace std;
const int INF = 1001001001;
const long long LINF = 1e18;
const string endstr = "\n";
template <typename T>
T gcd(T a, T b) {
  return (a == 0) ? b : gcd(b % a, a);
}
template <typename T>
T lcm(T a, T b) {
  return a / gcd(a, b) * b;
}
bool p_comp_fs(const pair<int, int> p1, const pair<int, int> p2) {
  return p1.first < p2.first;
};
bool p_comp_fg(const pair<int, int> p1, const pair<int, int> p2) {
  return p1.first > p2.first;
};
bool p_comp_ss(const pair<int, int> p1, const pair<int, int> p2) {
  return p1.second < p2.second;
};
bool p_comp_sg(const pair<int, int> p1, const pair<int, int> p2) {
  return p1.second > p2.second;
};
template <typename T>
vector<T> uniquen(vector<T> vec) {
  vec.erase(unique(vec.begin(), vec.end()), vec.end());
  return vec;
}
int main() {
  long long N;
  cin >> N;
  map<long long, long long> c;
  for (long long i = 0; i < N; i++) {
    long long a;
    cin >> a;
    long long m = min(a / 400, (long long)8);
    c[m]++;
  }
  long long ret = 0;
  for (long long i = 0; i * 400 <= 3199; i++) {
    if (c[i] != 0) ret++;
  }
  cout << ret << " " << ret + c[8] << endstr;
  return 0;
}
