#include <bits/stdc++.h>
using namespace std;
const int MAX = 510000;
const int MOD = 1000000007;
long long int fac[MAX], finv[MAX], inv[MAX];
void COMinit() {
  fac[0] = fac[1] = 1;
  finv[0] = finv[1] = 1;
  inv[1] = 1;
  for (int i = 2; i < MAX; i++) {
    fac[i] = fac[i - 1] * i % MOD;
    inv[i] = MOD - inv[MOD % i] * (MOD / i) % MOD;
    finv[i] = finv[i - 1] * inv[i] % MOD;
  }
}
long long COM(int n, int k) {
  if (n < k) return 0;
  if (n < 0 || k < 0) return 0;
  return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
long long int toColor(long long int rate) {
  if (rate < 400) {
    return 0;
  } else if (rate < 800) {
    return 1;
  } else if (rate < 1200) {
    return 2;
  } else if (rate < 1600) {
    return 3;
  } else if (rate < 2000) {
    return 4;
  } else if (rate < 2400) {
    return 5;
  } else if (rate < 2800) {
    return 6;
  } else if (rate < 3200) {
    return 7;
  } else {
    return 8;
  }
}
long long int countColor(vector<long long int> colors) {
  long long int count = 0;
  for (int i = (0); i < (8); ++i) {
    if (colors[i] > 0) {
      count++;
    }
  }
  return count;
}
int main() {
  long long int n;
  cin >> n;
  vector<long long int> colors(9, 0);
  for (int i = (0); i < (n); ++i) {
    long long int a;
    cin >> a;
    colors[toColor(a)]++;
  }
  long long int usedColors = countColor(colors);
  long long int notUsedColors = 8 - usedColors;
  long long int free = colors[8];
  cout << max((long long int)1, usedColors) << ' '
       << max((long long int)1, usedColors + min(free, notUsedColors)) << endl;
  return 0;
}
