#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> color(8, false);
  int free = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      free++;
    else
      color[a / 400] = true;
  }
  int nofree = 0;
  for (bool b : color) nofree += b;
  if (nofree == 0)
    printf("%d\n", 1);
  else
    printf("%d %d\n", nofree, nofree + free);
  return 0;
}
