#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) cin >> a[i];
  vector<bool> color(8, false);
  int c = 0, sub = 0;
  for (int i = 0; i < n; ++i) {
    if (a[i] >= 3200) {
      ++sub;
      continue;
    }
    color[a[i] / 400] = true;
  }
  for (int i = 0; i < 8; ++i) {
    if (color[i]) ++c;
  }
  cout << c << " " << c + sub << endl;
  return 0;
}
