#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<bool> flags(8);
  int minCnt = 0, maxCnt = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 3200) {
      minCnt++;
      int index = a / 400;
      if (flags[index] == false) flags[index] = true;
    } else {
      maxCnt++;
    }
  }
  int color = 0;
  for (bool tf : flags) {
    if (tf) color++;
  }
  maxCnt += color;
  if (maxCnt > N) maxCnt = N;
  if (minCnt < 1) minCnt = 1;
  cout << minCnt << " " << maxCnt << endl;
}
