#include <bits/stdc++.h>
using namespace std;
int N;
int counts[8];
int main() {
  cin >> N;
  int unicount = 0;
  for (int i = 0; i < N; i++) {
    int r;
    cin >> r;
    if (r >= 3200)
      unicount++;
    else
      counts[r / 400]++;
  }
  int s = 0;
  for (int i = 0; i < 8; i++) {
    if (counts[i]) s++;
  }
  cout << s << " " << s + unicount << endl;
  return 0;
}
