#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int(i) = 0; (i) < (n); (i)++) cin >> a.at(i);
  vector<int> rate(9);
  for (int(i) = 0; (i) < (n); (i)++) {
    int s = a.at(i) / 400;
    rate.at(s)++;
  }
  int fix = 0;
  int free = rate.at(8);
  for (int(i) = 0; (i) < (8); (i)++) {
    if (rate.at(i)) fix++;
  }
  cout << max(fix, 1) << " " << fix + free;
}
