#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<ll, ll>;
const ll MOD = 1000000007;
const int dx[8] = {1, 0, -1, 0, 1, -1, -1, 1};
const int dy[8] = {0, 1, 0, -1, 1, 1, -1, -1};
void solve() {
  int n;
  cin >> n;
  int color[9] = {};
  int lims[9] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 2147483647};
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    for (int j = 0; j < 9; j++) {
      if (a < lims[j]) {
        color[j]++;
        break;
      }
    }
  }
  int minCnt = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) minCnt++;
  }
  cout << max(minCnt, 1) << " " << min(8, minCnt + color[8]) << endl;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  srand((unsigned)time(NULL));
  cout << fixed << setprecision(12);
  solve();
}
