#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> color(9, 0);
  for (int i = 0; (i) < (n); (i)++) {
    int late;
    cin >> late;
    if (late >= 3200)
      color[8]++;
    else
      color[late / 400]++;
  }
  int res = 0;
  for (int i = 0; (i) < (8); (i)++) {
    if (color[i] > 0) res++;
  }
  cout << res << ' ';
  cout << min(8, res + color[8]) << endl;
  return 0;
}
