#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  map<int, int> M;
  int f = 0;
  for (int i = 0; i < N; i++) {
    int r;
    cin >> r;
    if (r < 400)
      M[0]++;
    else if (r < 800)
      M[1]++;
    else if (r < 1200)
      M[2]++;
    else if (r < 1600)
      M[3]++;
    else if (r < 2000)
      M[4]++;
    else if (r < 2400)
      M[5]++;
    else if (r < 2800)
      M[6]++;
    else if (r < 3200)
      M[7]++;
    else
      f++;
  }
  int c = 0;
  for (auto m : M) c++;
  cout << c << " " << c + f << endl;
  return 0;
}
