#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  scanf("%d", &N);
  vector<int> a;
  for (int i = 0; i < N; i++) {
    int tmp;
    scanf("%d", &tmp);
    a.push_back(tmp);
  }
  vector<bool> ratedColors;
  for (int i = 0; i < 8; i++) {
    ratedColors.push_back(false);
  }
  int numRated3200 = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] >= 1 && a[i] <= 399)
      ratedColors[0] = true;
    else if (a[i] >= 400 && a[i] <= 799)
      ratedColors[1] = true;
    else if (a[i] >= 800 && a[i] <= 1199)
      ratedColors[2] = true;
    else if (a[i] >= 1200 && a[i] <= 1599)
      ratedColors[3] = true;
    else if (a[i] >= 1600 && a[i] <= 1999)
      ratedColors[4] = true;
    else if (a[i] >= 2000 && a[i] <= 2399)
      ratedColors[5] = true;
    else if (a[i] >= 2400 && a[i] <= 2799)
      ratedColors[6] = true;
    else if (a[i] >= 2800 && a[i] <= 3199)
      ratedColors[7] = true;
    else if (a[i] >= 3200)
      numRated3200++;
  }
  int numRated = 0;
  for (int i = 0; i < 8; i++) {
    if (ratedColors[i]) numRated++;
  }
  printf("%d %d\n", numRated, numRated + numRated3200);
}
