#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, min = 0, max = 0;
  cin >> N;
  vector<int> color(9, 0);
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    int index = (a / 400 > 8) ? 8 : a / 400;
    color[index]++;
  }
  int over = color[8];
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      min++;
      max++;
    } else {
      if (over != 0) {
        max++;
        over--;
      }
    }
  }
  if (min == 0) min++;
  printf("%d %d\n", min, max);
}
