#include <bits/stdc++.h>
using namespace std;
int main() {
  int rate[8] = {0};
  int N, min, max;
  cin >> N;
  vector<int> a;
  min = max = 0;
  for (int i = (0); i < (N); ++i) {
    int n;
    cin >> n;
    a.push_back(n);
  }
  sort(a.begin(), a.end());
  for (int i = (0); i < (N); ++i) {
    if (a[i] <= 399) {
      rate[0] = 1;
    } else if (a[i] <= 799) {
      rate[1] = 1;
    } else if (a[i] <= 1199) {
      rate[2] = 1;
    } else if (a[i] <= 1599) {
      rate[3] = 1;
    } else if (a[i] <= 1999) {
      rate[4] = 1;
    } else if (a[i] <= 2399) {
      rate[5] = 1;
    } else if (a[i] <= 2799) {
      rate[6] = 1;
    } else if (a[i] <= 3199) {
      rate[7] = 1;
    } else {
      max++;
    }
  }
  for (int j = (0); j < (8); ++j)
    if (rate[j]) min++;
  if (min + max > 8) max = 8;
  cout << min << " " << min + max << endl;
  return 0;
}
