#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, ovr = 0, rate, mi = 0;
  cin >> n;
  vector<int> a(8, 0);
  for (i = 0; i < n; i++) {
    cin >> rate;
    if (rate / 400 >= 8)
      ovr++;
    else {
      if (a.at(rate / 400) == 0) a.at(rate / 400) = 1;
    }
  }
  for (i = 0; i < 8; i++) mi += a.at(i);
  cout << mi << " " << mi + ovr << endl;
  return 0;
}
