#include <bits/stdc++.h>
using namespace std;
int rate[] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
int main() {
  int N;
  cin >> N;
  int cnt = 0;
  set<int> se;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    for (int j = 0; j < 8; j++) {
      if (a < rate[j]) {
        se.insert(j);
        break;
      }
      if (j == 7) cnt++;
    }
  }
  int minv = se.size();
  cout << minv << " " << minv + cnt << endl;
}
