#include <bits/stdc++.h>
using namespace std;
int N;
int a[100 + 1];
bool width[8];
int main() {
  scanf("%d", &N);
  for (int i = 0; i < N; i++) scanf("%d", &a[i]);
  int count = 0;
  int over = 0;
  for (int i = 0; i < N; i++) {
    int target = a[i];
    if (target < 400) {
      width[0] = true;
    } else if (target < 800) {
      width[1] = true;
    } else if (target < 1200) {
      width[2] = true;
    } else if (target < 1600) {
      width[3] = true;
    } else if (target < 2000) {
      width[4] = true;
    } else if (target < 2400) {
      width[5] = true;
    } else if (target < 2800) {
      width[6] = true;
    } else if (target < 3200) {
      width[7] = true;
    } else {
      over++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (width[i]) count++;
  }
  int min = count;
  int max = count + over;
  cout << min << " " << max << endl;
}
