#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> col;
  while (N--) {
    int a;
    cin >> a;
    col[min(8, a / 400)]++;
  }
  int mi = 0;
  for (auto x : col) {
    if (x.first != 8) mi++;
  }
  cout << mi << ' ' << min(8, mi + col[8]) << endl;
}
