#include <bits/stdc++.h>
using namespace std;
double SCALE = 1.0;
double OFFSET_X = 0.0;
double OFFSET_Y = 0.0;
const int IINF = 1 << 28;
const int MOD = 1e9 + 7;
const double INF = 1e30;
const double EPS = 1e-10;
const double PI = acos(-1.0);
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, -1, 0, 1};
int main() {
  int N, a[100];
  int rate[8] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  cin >> N;
  for (int i = 0; i < N; ++i) cin >> a[i];
  sort(a, a + N);
  int cnt[9] = {0};
  for (int i = 0; i < N; ++i) {
    int idx = 8;
    for (int j = 0; j < 8; ++j) {
      if (a[i] < rate[j]) {
        idx = j;
        break;
      }
    }
    ++cnt[idx];
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) ans += (cnt[i] > 0);
  cout << ans << " " << ans + cnt[8] << endl;
}
