#include <bits/stdc++.h>
using namespace std;
struct Fast {
  Fast() {
    cin.tie(0);
    ios::sync_with_stdio(0);
  }
} fast;
using intpair = pair<int, int>;
signed main() {
  int n;
  cin >> n;
  vector<int> color(9, 0);
  for (int i = 0; i < (int)(n); i++) {
    int r;
    cin >> r;
    color[min(8, r / 400)]++;
  }
  int min_color = 0;
  for (int i = 0; i < (int)(8); i++) {
    min_color += !!color[i];
  }
  cout << min_color << " " << min_color + color[8] << endl;
}
