#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, tmp, min, max;
  int col[8];
  cin >> N;
  min = max = 0;
  for (int i = 0; i < 8; ++i) {
    col[i] = 0;
  }
  for (int i = 0; i < N; ++i) {
    cin >> tmp;
    if (tmp > 3199 && N < 8)
      max = N;
    else if (tmp > 3199 && N > 7)
      max = 8;
    for (int j = 0; j < 8; ++j) {
      if (tmp < (400 * (j + 1))) {
        col[j] = 1;
        break;
      }
    }
    if (col[0] != 0 && col[1] != 0 && col[2] != 0 && col[3] != 0 &&
        col[4] != 0 && col[5] != 0 && col[6] != 0 && col[7] != 0) {
      min = max = 8;
      break;
    }
  }
  tmp = 0;
  for (int i = 0; i < 8; ++i) {
    if (col[i] != 0) tmp++;
  }
  min = tmp;
  if (max < tmp) max = tmp;
  cout << min << " " << max << endl;
}
