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