#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n;
  cin >> n;
  vector<int> fv(200, 0);
  int distinct = 0;
  int cate = 0;
  for (int i = 1; i <= n; ++i) {
    int x;
    cin >> x;
    x /= 400;
    fv[x] += 1;
    if (fv[x] == 1 and x <= 7) {
      distinct += 1;
    }
    if (x > 7) cate += 1;
  }
  cout << distinct << ' ' << distinct + cate;
  return 0;
}
