#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> table(9);
  fill(table.begin(), table.end(), 0);
  for (int i = 0; i < n; i++) {
    int v;
    cin >> v;
    v = min(v, 3200);
    table[v / 400]++;
  }
  int mn = 0, mx = 0;
  for (int i = 0; i < 8; i++) {
    if (table[i] > 0) {
      mn++;
      mx++;
    }
  }
  mx = min(8, mx + table[8]);
  if (mn == 0) {
    mn = 1;
  }
  cout << mn << " " << mx << endl;
  return 0;
}
