#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using Pii = pair<int, int>;
using Pll = pair<ll, ll>;
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 int inf = INT_MAX;
const int MOD = 1000000007;
const long long INF = LLONG_MAX;
int N;
map<int, int> mp;
int cntover;
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    a /= 400;
    ++mp[a];
    if (a >= 8) {
      ++cntover;
    }
  }
  int ansmin = 0;
  for (auto e : mp) {
    if (e.first <= 7) {
      ++ansmin;
    }
  }
  cout << ansmin << " " << ansmin + cntover;
}
