#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> count(9, 0);
  int a;
  for (int i = 0; i < N; i++) {
    cin >> a;
    a /= 400;
    a = min(a, 8);
    count[a]++;
  }
  int minimum = 0;
  for (int i = 0; i < 8; i++) {
    if (count[i] > 0) {
      minimum++;
    }
  }
  int maximum = min(minimum + count[8], 8);
  cout << minimum << " " << maximum << endl;
}
