#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9 + 7;
const long long longinf = 1LL << 60;
const int mx = 200010;
const long long mod = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  map<int, int> mp;
  int sp = 0;
  for (int i = (int)(0); i < (int)(n); ++i) {
    cin >> a[i];
    if (a[i] < 400) {
      mp[0]++;
      continue;
    }
    if (a[i] < 800) {
      mp[1]++;
      continue;
    }
    if (a[i] < 1200) {
      mp[2]++;
      continue;
    }
    if (a[i] < 1600) {
      mp[3]++;
      continue;
    }
    if (a[i] < 2000) {
      mp[4]++;
      continue;
    }
    if (a[i] < 2400) {
      mp[5]++;
      continue;
    }
    if (a[i] < 3200) {
      mp[6]++;
      continue;
    }
    sp++;
  }
  cout << mp.size() << " " << min(7, (int)mp.size() + sp) << endl;
  return 0;
}
