#include <bits/stdc++.h>
using namespace std;
int n, i, j, a, b, c, m, M, d, x, y, z;
int main() {
  cin >> n;
  vector<int> rate(n);
  vector<int> col(8, 0);
  for (; i < n; i++) {
    cin >> rate[i];
    if (rate[i] < 400)
      col[0]++;
    else if (rate[i] < 800)
      col[1]++;
    else if (rate[i] < 1200)
      col[2]++;
    else if (rate[i] < 1600)
      col[3]++;
    else if (rate[i] < 2000)
      col[4]++;
    else if (rate[i] < 2400)
      col[5]++;
    else if (rate[i] < 2800)
      col[6]++;
    else if (rate[i] < 3200)
      col[7]++;
    else
      c++;
  }
  for (i = 0; i < 8; i++)
    if (col[i] != 0) m++;
  M = min(m + c, 8);
  cout << m << " " << M;
}
