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