#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<bool> color(8, false);
  int free = 0;
  for (int64_t i = (0); i < (N); ++i) {
    int a;
    cin >> a;
    if (a > 3199)
      ++free;
    else
      color[a / 400] = true;
  }
  int cntcolor = accumulate((color).begin(), (color).end(), 0);
  cout << cntcolor << " " << min(cntcolor + free, 8) << endl;
}
