#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  set<int> a;
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    int c;
    cin >> c;
    c /= 400;
    if (c < 8)
      a.insert(c);
    else
      cnt++;
  }
  cout << a.size() << " " << min<int>(n, a.size() + cnt) << endl;
}
