#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  map<int, int> M;
  int overred = 0;
  for (int i = 0; i < N; i++) {
    if (a[i] >= 1 && a[i] <= 399) {
      M[0]++;
    } else if (a[i] >= 400 && a[i] <= 799) {
      M[1]++;
    } else if (a[i] >= 800 && a[i] <= 1199) {
      M[2]++;
    } else if (a[i] >= 1200 && a[i] <= 1599) {
      M[3]++;
    } else if (a[i] >= 1600 && a[i] <= 1999) {
      M[4]++;
    } else if (a[i] >= 2000 && a[i] <= 2399) {
      M[5]++;
    } else if (a[i] >= 2400 && a[i] <= 2799) {
      M[6]++;
    } else if (a[i] >= 2800 && a[i] <= 3199) {
      M[7]++;
    } else if (a[i] >= 3200) {
      overred++;
    }
  }
  int msize = M.size();
  cout << msize << " " << min(8, msize + overred) << endl;
  return 0;
}
