#include <bits/stdc++.h>
using namespace std;
long long Count[9];
long long Power(long long a, long long b) {
  long long result = 1;
  while (b) {
    if (b % 2) {
      result = (result * a) % 1000000007;
    }
    b = b >> 1;
    a = (a * a) % 1000000007;
  }
  return result;
}
int main() {
  std::ios_base::sync_with_stdio(false);
  long long N, i;
  cin >> N;
  long long Maximum = 0, Minimum = 0;
  for (i = 0; i < N; i++) {
    long long x;
    cin >> x;
    if (x >= 3200) {
      Maximum++;
      continue;
    }
    x /= 400;
    Count[x]++;
  }
  for (i = 0; i < 9; i++) {
    if (!Count[i]) {
      continue;
    }
    Maximum++;
    Minimum++;
  }
  cout << Minimum << ' ' << Maximum;
  return 0;
}
