#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
int main() {
  int N;
  cin >> N;
  vi rate(9, 0);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    rate[a / 400]++;
  }
  int cmin = 0, cmax = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] > 0) cmin++;
  }
  cmax = min(8, cmin + rate[8]);
  cout << cmin << ' ' << cmax << endl;
}
