#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, i;
  int min = 0, max = 0;
  int rate[100];
  cin >> N;
  for (i = 0; i < N; i++) cin >> rate[i];
  int color[9] = {0};
  for (i = 0; i < N; i++) {
    if (rate[i] >= 1 && rate[i] <= 399)
      color[0]++;
    else if (rate[i] >= 400 && rate[i] <= 799)
      color[1]++;
    else if (rate[i] >= 800 && rate[i] <= 1199)
      color[2]++;
    else if (rate[i] >= 1200 && rate[i] <= 1599)
      color[3]++;
    else if (rate[i] >= 1600 && rate[i] <= 1999)
      color[4]++;
    else if (rate[i] >= 2000 && rate[i] <= 2399)
      color[5]++;
    else if (rate[i] >= 2400 && rate[i] <= 2799)
      color[6]++;
    else if (rate[i] >= 2800 && rate[i] <= 3199)
      color[7]++;
    else
      color[8]++;
  }
  for (i = 0; i < 8; i++) {
    if (color[i] != 0) min++;
  }
  if (color[8] != 0)
    max = min + color[8];
  else
    max = min;
  cout << min << " " << max << endl;
  return 0;
}
