#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[100];
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  int rate[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  for (int i = 0; i < N; i++) {
    if (1 <= a[i] && a[i] <= 399) {
      rate[0]++;
    } else if (400 <= a[i] && a[i] <= 799) {
      rate[1]++;
    } else if (800 <= a[i] && a[i] <= 1199) {
      rate[2]++;
    } else if (1200 <= a[i] && a[i] <= 1599) {
      rate[3]++;
    } else if (1600 <= a[i] && a[i] <= 1999) {
      rate[4]++;
    } else if (2000 <= a[i] && a[i] <= 2399) {
      rate[5]++;
    } else if (2400 <= a[i] && a[i] <= 2799) {
      rate[6]++;
    } else if (2800 <= a[i] && a[i] <= 3199) {
      rate[7]++;
    } else if (3200 <= a[i]) {
      rate[8]++;
    }
  }
  int count = 0;
  int countif = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) {
      count++;
    }
  }
  countif = count;
  if (rate[8] != 0) {
    countif += rate[8];
    if (countif >= 9) {
      countif = 8;
    }
  }
  if (count == 0) {
    count = countif;
  }
  cout << count << " " << countif << endl;
}
