#include <bits/stdc++.h>
using namespace std;
int main() {
  int col[10];
  for (int x = 0; x < 10; x++) col[x] = 0;
  int N;
  cin >> N;
  int gt = 0;
  int a;
  for (int n = 0; n < N; n++) {
    cin >> a;
    if (a >= 3200)
      gt++;
    else if (a >= 2800)
      col[7]++;
    else if (a >= 2400)
      col[6]++;
    else if (a >= 2000)
      col[5]++;
    else if (a >= 1600)
      col[4]++;
    else if (a >= 1200)
      col[3]++;
    else if (a >= 800)
      col[2]++;
    else if (a >= 400)
      col[1]++;
    else
      col[0]++;
  }
  int diffc = 0;
  for (int x = 0; x < 8; x++) {
    diffc += (col[x] > 0);
  }
  if (diffc == 0 && gt > 0)
    cout << 1;
  else
    cout << diffc;
  cout << " ";
  cout << min(9, diffc + gt) << endl;
  return 0;
}
