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