#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  long long int n, k;
  cin >> n;
  map<long long int, long long int> m;
  for (long long int i = 0; i < n; i++) {
    long long int a;
    cin >> a;
    if (a >= 3200)
      a = 8;
    else {
      a /= 400;
    }
    m[a]++;
  }
  long long int temp = 0;
  long long int red = 0;
  for (auto p : m) {
    if (p.first == 8) {
      red += p.second;
    } else {
      temp++;
    }
  }
  cout << temp << " " << temp + red << endl;
}
