#include <bits/stdc++.h>
using namespace std;
string yorn(bool a) {
  if (a) return "Yes";
  return "No";
}
int main() {
  int n;
  cin >> n;
  vector<int> color(9, 0);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      color.at(8)++;
    else
      color.at(a / 400) = 1;
  }
  int mn = 0;
  for (int i = 0; i < 8; i++) mn += color.at(i);
  cout << mn << " " << mn + color.at(8) << endl;
}
