#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  vector<int> a;
  cin >> N;
  for (int i = 0; i < N; i++) {
    int aa;
    cin >> aa;
    a.push_back(aa);
  }
  int over = 0;
  bool color[8] = {};
  for (int i = 0; i < N; i++) {
    if (a[i] < 3200)
      color[a[i] / 400] = true;
    else
      over++;
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) sum++;
  }
  cout << max(1, sum) << " " << max(max(1, sum), min(8, sum + over)) << endl;
  return 0;
}
