#include <bits/stdc++.h>
int main() {
  int num;
  scanf("%d", &num);
  int color[12] = {0};
  int colorNum = 0;
  int rate;
  for (int i = 0; i < num; i++) {
    scanf("%d", &rate);
    color[rate / 400]++;
  }
  for (int i = 0; i < 8; i++) {
    if (color[i]) colorNum++;
  }
  std::cout << colorNum << " " << colorNum + color[8];
}
