#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int freedom = 0;
  bool colors[8];
  for (int i = 0; i < 8; i++) {
    colors[i] = false;
  }
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (tmp <= 399) {
      colors[0] = true;
    } else if (tmp <= 799) {
      colors[1] = true;
    } else if (tmp <= 1199) {
      colors[2] = true;
    } else if (tmp <= 1599) {
      colors[3] = true;
    } else if (tmp <= 1999) {
      colors[4] = true;
    } else if (tmp <= 2399) {
      colors[5] = true;
    } else if (tmp <= 2799) {
      colors[6] = true;
    } else if (tmp <= 3199) {
      colors[7] = true;
    } else if (tmp >= 3200) {
      freedom++;
    }
  }
  int colorsCount = 0;
  for (int i = 0; i < 8; i++) {
    if (colors[i]) {
      colorsCount++;
    }
  }
  int maxAns = colorsCount + freedom;
  if (maxAns > 8) {
    maxAns = 8;
  }
  cout << colorsCount << " " << maxAns << endl;
  return 0;
}
