#include <bits/stdc++.h>
using namespace std;
using VI = vector<int>;
using VVI = vector<VI>;
using VB = vector<bool>;
using VVB = vector<VB>;
using VD = vector<double>;
using VVD = vector<VD>;
using VS = vector<string>;
using PII = pair<int, int>;
using VPII = vector<PII>;
using VL = vector<long long>;
using VVL = vector<VL>;
int n, a[101];
int getcolour(int rating) { return rating % 400; }
void minmax() {
  VB used(8, false);
  int grandmaster = 0;
  for (int i = 0; i < n; ++i) {
    if (a[i] >= 3200) {
      ++grandmaster;
      continue;
    }
    int col = getcolour(a[i]);
    used[col] = true;
  }
  int mincolor = count(used.begin(), used.end(), true);
  cout << max(1, mincolor) << " ";
  int available = 0;
  for (int i = 0; i < n; ++i)
    if (!used[i]) ++available;
  cout << mincolor + min(grandmaster, available) << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cin >> n;
  for (int i = 0; i < (int)n; ++i) cin >> a[i];
  minmax();
  return 0;
}
