#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, f = 0;
  cin >> n;
  vector<int> a(n), c(8);
  for (int i = 0; i < n; i++) {
    cin >> a.at(i);
    if (a.at(i) >= 3200)
      f++;
    else
      c[a[i] / 400]++;
  }
  int o = 0;
  for (auto x : c)
    if (x) o++;
  if (!f)
    cout << o << ' ' << o << endl;
  else
    cout << max(o, 1) << ' ' << min(o + f, 8) << endl;
}
