#include <bits/stdc++.h>
using ll = long long;
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> x(n);
  for (int i = 0; i < (n); ++i) {
    cin >> x.at(i);
  }
  int count = 0;
  vector<int> a(8);
  for (int i = 0; i < (n); ++i) {
    if (x.at(i) <= 3199) {
      a.at(x.at(i) / 400)++;
    } else {
      count++;
    }
  }
  int sum = 0;
  for (int i = 0; i < (8); ++i) {
    if (a.at(i) > 0) {
      sum++;
    }
  }
  cout << sum << ' ' << count + sum;
}
