#include <bits/stdc++.h>
using namespace std;
int main() {
  long int n, m = 0, v = 0, a[9] = {0};
  cin >> n;
  long int b[n];
  for (int i = 0; i < n; i++) {
    cin >> b[i];
    if (b[i] < 400)
      a[0]++;
    else if (b[i] < 800)
      a[1]++;
    else if (b[i] < 1200)
      a[2]++;
    else if (b[i] < 1600)
      a[3]++;
    else if (b[i] < 2000)
      a[4]++;
    else if (b[i] < 2400)
      a[5]++;
    else if (b[i] < 2800)
      a[6]++;
    else if (b[i] < 3200)
      a[7]++;
    else if (b[i] >= 3200)
      a[8]++;
  }
  for (int i = 0; i < 8; i++) {
    if (a[i] > 0) m++;
  }
  v = m + a[8];
  if (v > 8) v = 8;
  cout << m << " " << v << endl;
  return 0;
}
