#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int col[9] = {};
  for (int i = 0; i < (int)(n); ++i) {
    int t;
    cin >> t;
    t /= 400;
    int tmp = min(t, 8);
    col[tmp]++;
  }
  int mini = 0;
  for (int i = 0; i < (int)(8); ++i)
    if (col[i] > 0) mini++;
  printf("%d %d\n", max(mini, 1), min(mini + col[8], 9));
  return 0;
}
