#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
  }
  long long prevRank = -999;
  long long min = 0;
  long long max = 0;
  for (long long ii = 0; ii < n; ++ii) {
    if (a[ii] >= 3200) {
      if (min == 0) {
        min = 1;
        max = 1;
      } else {
        max++;
      }
    } else {
      long long rank = (a[ii]) / 400;
      if (prevRank != rank) {
        prevRank = rank;
        min++;
        max++;
      }
    }
  }
  cout << min << " " << max << endl;
}
