#include <bins/stdc++.h>
using namespace std;

int main()
{
  int N;
  cin >> N;

  const segNum 8;
  int colorCnt[segNum+1];

  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    for (int j = 0; j < segNum; j++) {
      if (j*400 <= a && a < (j+1)*400) {
        colorCnt[j] = 1;
      }
    }
    if (a >= 400*segNum) {
      colorCnt[segNum+1]++;
    }
  }

  int max, min;
  for (int i = 0; i < segNum; i++) {
    if (colorCnt) {
      max++;
      min++;
    }
}
max += colorCnt[segNum+1];
if (min == 0) {
  min = 1;
}

cout << min << " " << max;

return 0;
}
