#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  map<int, int> mp;
  for (int i = 0; i < (n); ++i) {
    cin >> a[i];
    mp[a[i] / 400]++;
  }
  int cnt1 = 0, cnt2 = 0;
  for (int i = 0; i < 8; ++i) {
    if (mp[i] != 0) {
      cnt1++;
    }
  }
  for (int i = 8; i < mp.size(); ++i) {
    cnt2 += mp[i];
  }
  cout << cnt1 << " " << cnt1 + cnt2 << endl;
}
