#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);
    }
  }
  
  int k = s.size();
  cout << max(k,1) << " " << k + kind << endl;
}
