#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<bool> colors(8, false);
  int belowCnt = 0;
  int overCnt = 0;
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    int color = a / 400;
    if (color > 7) {
      overCnt++;
    } else {
      if (!colors[color]) {
        colors[color] = true;
        belowCnt++;
      }
    }
  }
  int minValue = belowCnt + max(0, overCnt - belowCnt);
  int maxValue = belowCnt + overCnt;
  cout << minValue << " " << maxValue << endl;
  return 0;
}
