#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> list(9, 0);
  for (int i = 0; i < n; i++) {
    int temp;
    cin >> temp;
    temp = min(8, temp / 400);
    list.at(temp)++;
  }
  int count = 0;
  for (int i = 0; i < 8; i++) {
    if (list.at(i)) {
      count++;
    }
  }
  cout << count << " " << count + list.at(8) << endl;
}
