#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int kind = 0;
  set<int> s;
  for (int i = 0; i < N; i++) {
    int x;
    cin >> x;
    if (x / 400 > 7)
      kind += 1;
    else {
      s.insert(x / 400);
    }
  }
  cout << s.size() << " " << s.size() + kind << endl;
}
