#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const* argv[]) {
  int n, i, j, tmp, min = 0, max = 0;
  bool anycolor = false;
  vector<int> a;
  vector<int> flag(10, 0);
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> tmp;
    a.push_back(tmp);
  }
  for (i = 0; i < n; i++) {
    if (a[i] < 400)
      flag[0] = 1;
    else if (a[i] < 800 && a[i] >= 400)
      flag[1] = 1;
    else if (a[i] < 1200 && a[i] >= 800)
      flag[2] = 1;
    else if (a[i] < 1600 && a[i] >= 1200)
      flag[3] = 1;
    else if (a[i] < 2000 && a[i] >= 1600)
      flag[4] = 1;
    else if (a[i] < 2400 && a[i] >= 2000)
      flag[5] = 1;
    else if (a[i] < 2800 && a[i] >= 2400)
      flag[6] = 1;
    else if (a[i] < 3200 && a[i] >= 2800)
      flag[7] = 1;
    else if (a[i] >= 3200) {
      for (j = 0; j < 9; j++) {
        if (flag[j] == 1) anycolor = true;
      }
      if (anycolor == false) {
        flag[8] = 1;
        continue;
      }
      flag[9]++;
    }
  }
  for (i = 0; i < 9; i++) {
    min += flag[i];
    max += flag[i];
  }
  max += flag[9];
  cout << min << " " << max << endl;
  return 0;
}
