#include <bits/stdc++.h>
using namespace std;
vector<int> rate(9);
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < N; i++) {
    int r = min(a[i], 3200) / 400;
    rate[r]++;
  }
  int total = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) total++;
  }
  int totalmin = total;
  int totalmax = total + max(0, rate[8]);
  cout << totalmin << " " << totalmax << endl;
}
