#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> v(9, 0);
  for (int i = 0; i < n; i++) {
    long long x;
    cin >> x;
    if (x >= 1 and x <= 399) {
      v[0] = 1;
    } else if (x >= 400 and x <= 799) {
      v[1] = 1;
    } else if (x >= 800 and x <= 1199) {
      v[2] = 1;
    } else if (x >= 1200 and x <= 1599) {
      v[3] = 1;
    } else if (x >= 1600 and x <= 1999) {
      v[4] = 1;
    } else if (x >= 2000 and x <= 2399) {
      v[5] = 1;
    } else if (x >= 2400 and x <= 2799) {
      v[6] = 1;
    } else if (x >= 2800 and x <= 3199) {
      v[7] = 1;
    } else {
      v[8]++;
    }
  }
  long long mx = accumulate(v.begin(), v.end(), 0);
  long long mn = 0;
  for (int i = 0; i <= 7; i++) {
    mn += v[i];
  }
  cout << mn << " " << mx << endl;
}
