#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
const double eps = 1e-10;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
const string YES = "";
const string NO = "";
int color[9];
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  for (int i = 0; i < (n); ++i) {
    color[a[i] / 400]++;
  }
  int _min = 0;
  for (int i = 0; i < (8); ++i) {
    if (color[i] > 0) _min++;
  }
  int _max = min(_min + color[8], n);
  cout << _min << " " << _max << "\n";
}
