#include <bits/stdc++.h>
using namespace std;
int c[9];
class Solution {
 public:
  void solve(std::istream& in, std::ostream& out) {
    int n, a;
    in >> n;
    memset(c, 0, sizeof(c));
    for (int i = 0; i < n; i++) {
      in >> a;
      c[a >= 3200 ? 8 : a / 400]++;
    }
    int ans = 0;
    for (int i = 0; i < 8; i++) {
      if (c[i]) {
        ans++;
      }
    }
    out << (ans == 0 ? !!c[8] : ans) << " " << (ans + c[8] > 8 ? 8 : ans + c[8])
        << endl;
  }
};
void solve(std::istream& in, std::ostream& out) {
  out << std::setprecision(12);
  Solution solution;
  solution.solve(in, out);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  istream& in = cin;
  ostream& out = cout;
  solve(in, out);
  return 0;
}
