#include <bits/stdc++.h>
using namespace std;
int color[8];
void rate2color(int rate) {
  if (1 <= rate && rate < 400) color[0]++;
  if (400 <= rate && rate < 799) color[1]++;
  if (800 <= rate && rate < 1199) color[2]++;
  if (1200 <= rate && rate < 1599) color[3]++;
  if (1600 <= rate && rate < 1999) color[4]++;
  if (2000 <= rate && rate < 2399) color[5]++;
  if (2400 <= rate && rate < 2799) color[6]++;
  if (2800 <= rate && rate < 3199) color[7]++;
}
int main(void) {
  int N;
  cin >> N;
  int redCnt = 0;
  for (int i = 0; i < N; ++i) {
    int tmp;
    cin >> tmp;
    if (tmp >= 3200) redCnt++;
    rate2color(tmp);
  }
  int minKind = 0;
  for (int i = 0; i < 8; ++i) {
    if (color[i] != 0) minKind++;
  }
  if (minKind == 0) {
    cout << 1 << endl;
  } else {
    cout << minKind << " ";
  }
  if (redCnt > 0) {
    cout << minKind + redCnt << endl;
  } else {
    cout << minKind << endl;
  }
  return 0;
}
