#include <bits/stdc++.h>
using namespace std;
constexpr int INF = 1 << 29;
constexpr int MOD = 1000000007;
constexpr int dx[4] = {1, 0, -1, 0};
constexpr int dy[4] = {0, 1, 0, -1};
int getInd(int a) {
  if (a < 400) {
    return 0;
  } else if (a < 800) {
    return 1;
  } else if (a < 1200) {
    return 2;
  } else if (a < 1600) {
    return 3;
  } else if (a < 2000) {
    return 4;
  } else if (a < 2400) {
    return 5;
  } else if (a < 2800) {
    return 6;
  } else if (a < 3200) {
    return 7;
  } else {
    return -1;
  }
}
int main() {
  int n;
  cin >> n;
  vector<int> A;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    A.push_back(a);
  }
  int count = 0;
  int color[8] = {0};
  for (int i = 0; i < n; i++) {
    int j = getInd(A[i]);
    if (j >= 0) {
      color[j]++;
    } else {
      count++;
    }
  }
  int mincount = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) {
      mincount++;
    }
  }
  cout << mincount << " " << min(mincount + count, n) << endl;
  return 0;
}
