#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  map<int, int> color;
  int crown = 0;
  int n;
  cin >> n;
  for (int i = 0; i < (n); ++i) {
    int tmp;
    cin >> tmp;
    if (tmp / 400 > 7)
      crown++;
    else {
      color[tmp / 400]++;
    }
  }
  cout << color.size() << " " << color.size() + crown << endl;
  return 0;
}
