#include <bits/stdc++.h>
using namespace std;
int main(int argc, const char* argv[]) {
  int N;
  int minn, maxn;
  int result;
  int tmp;
  cin >> N;
  vector<int> color(9, 0);
  for (int i = 0; i < N; i++) {
    cin >> tmp;
    if (tmp < 400) {
      color[0]++;
    } else if (tmp < 800) {
      color[1]++;
    } else if (tmp < 1200) {
      color[2]++;
    } else if (tmp < 1600) {
      color[3]++;
    } else if (tmp < 2000) {
      color[4]++;
    } else if (tmp < 2400) {
      color[5]++;
    } else if (tmp < 2800) {
      color[6]++;
    } else if (tmp < 3200) {
      color[7]++;
    } else {
      color[8]++;
    }
  }
  for (int j = 0; j < 8; j++) {
    if (color[j] != 0) result++;
  }
  if (color[8] + result >= 8)
    maxn = 8;
  else
    maxn = color[8] + result;
  minn = result;
  cout << minn << " " << maxn;
  return 0;
}
