#include <bits/stdc++.h>
using namespace std;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, 1, 0, -1};
int main() {
  int n;
  cin >> n;
  set<int> si;
  int cnt = 0;
  for (int i = 0; i < (int)(n); ++i) {
    int a;
    cin >> a;
    if (a < 3200)
      si.insert(a / 400);
    else
      cnt++;
  }
  int mi = max(1, (int)si.size());
  int ma = min(8, (int)si.size() + cnt);
  cout << mi << " " << ma << endl;
  return 0;
}
