#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  int c1 = 0, c2 = 0;
  set<int> my;
  while (n--) {
    int x;
    cin >> x;
    my.insert(x / 400);
    if (x >= 3200) ++c2;
  }
  for (int i = 0; i <= 7; ++i) {
    if (my.find(i) != my.end()) c1++;
  }
  if (c1 == 0) {
    if (c2 <= 8)
      cout << 1 << ' ' << c2 << '\n';
    else
      cout << "1 8\n";
  } else if (c1 + c2 <= 8) {
    cout << c1 << ' ' << c1 + c2 << '\n';
  } else
    cout << c1 << " 8\n";
}
