#include <bits/stdc++.h>
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
using P = pair<long long, long long>;
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
const long long dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const long long dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
const long long INF = 1e12;
const long long MOD = 1e9 + 7;
signed main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(15);
  long long n;
  cin >> n;
  vector<long long> rate(9, 0);
  for (long long i = 0; i < (long long)n; i++) {
    long long a;
    cin >> a;
    if (a < 400)
      rate[0]++;
    else if (a < 800)
      rate[1]++;
    else if (a < 1200)
      rate[2]++;
    else if (a < 1600)
      rate[3]++;
    else if (a < 2000)
      rate[4]++;
    else if (a < 2400)
      rate[5]++;
    else if (a < 2800)
      rate[6]++;
    else if (a < 3200)
      rate[7]++;
    else
      rate[8]++;
  }
  long long cnt = 0;
  for (long long i = 0; i < (long long)8; i++)
    if (rate[i] > 0) cnt++;
  cout << min(cnt, 1LL) << ' ' << cnt + rate[8] << endl;
}
