#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const long long LINF = 0x3f3f3f3f3f3f3f3fll;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < (n); ++i) {
    int t;
    cin >> t;
    mp[t / 400]++;
  }
  int mmin = 0, mmax = 0;
  for (int i = 0; i < (9); ++i) {
    if (i == 8) {
      if (mmin == 0) {
        mmax++;
        mmin++;
      } else {
        mmax += mp[8];
        mmax = min(8, mmax);
      }
    } else if (mp[i] > 0) {
      mmin++;
      mmax++;
    }
  }
  cout << mmin << " " << mmax << endl;
}
