#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long N, a[101], b[101], color[8], i, overred = 0, ans = 0, min, max;
  cin >> N;
  for (i = 0; i < 8; i++) {
    color[i] = 0;
  }
  for (i = 1; i <= N; i++) {
    cin >> a[i];
    b[i] = a[i] / 400;
    if (b[i] < 8) {
      color[b[i]]++;
    } else {
      overred++;
    }
  }
  for (i = 0; i < 8; i++) {
    if (color[i] > 0) {
      ans++;
    }
  }
  max = ans + overred;
  min = ans;
  cout << min << " " << max << endl;
  return 0;
}
