#include <bits/stdc++.h>
using namespace std;
long long n, w, h, i, j, a, b, d, x, y, z;
int main() {
  cin >> n;
  int c = 0;
  vector<long long> rate(n);
  vector<long long> 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++;
  }
  int m = 0, max;
  for (i = 0; i < 8; i++) {
    if (col[i] != 0) m++;
  }
  max = min(m + c, 8);
  cout << m << " " << max;
}
