#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  while (cin >> n) {
    int re = 0;
    int score[105];
    int str[105];
    memset(score, 0, sizeof(score));
    for (int i = 0; i < n; i++) {
      cin >> str[i];
      if (1 <= str[i] && str[i] <= 399)
        score[1]++;
      else if (400 <= str[i] && str[i] <= 799)
        score[2]++;
      else if (800 <= str[i] && str[i] <= 1199)
        score[3]++;
      else if (1200 <= str[i] && str[i] <= 1599)
        score[4]++;
      else if (1600 <= str[i] && str[i] <= 1999)
        score[5]++;
      else if (2000 <= str[i] && str[i] <= 2399)
        score[6]++;
      else if (2400 <= str[i] && str[i] <= 2799)
        score[7]++;
      else if (2800 <= str[i] && str[i] <= 3199)
        score[8]++;
      else if (str[i] >= 3200)
        re++;
    }
    int imin = 0, imax = 0, sum0 = 0;
    for (int i = 1; i <= 8; i++) {
      if (score[i] != 0) {
        imin++;
        imax++;
      }
    }
    if (re < sum0) sum0 = re;
    imax = imax + sum0;
    if (imax > 8) imax = 8;
    cout << imin << " " << imax << endl;
  }
  return 0;
}
