#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int N;
  cin >> N;
  vector<int> a;
  int tmp;
  int cnt[10] = {0};
  for (int i = 0; i < N; i++) {
    cin >> tmp;
    a.emplace_back(tmp);
    if (tmp <= 399) {
      cnt[0] += 1;
    } else if (tmp <= 799) {
      cnt[1] += 1;
    } else if (tmp <= 1199) {
      cnt[2] += 1;
    } else if (tmp <= 1599) {
      cnt[3] += 1;
    } else if (tmp <= 1999) {
      cnt[4] += 1;
    } else if (tmp <= 2399) {
      cnt[5] += 1;
    } else if (tmp <= 2799) {
      cnt[6] += 1;
    } else if (tmp <= 3199) {
      cnt[7] += 1;
    } else if (tmp >= 3200) {
      cnt[8] += 1;
    }
  }
  int sum = 0;
  for (int i = 0; i <= 7; i++) {
    if (cnt[i] != 0) {
      sum += 1;
    }
  }
  int max, min;
  if (0 == sum) {
    min = 1;
    if (cnt[8] <= 8) {
      max = cnt[8];
      min = 1;
    } else {
      max = 8;
      min = 1;
    }
  } else {
    if (0 == cnt[8]) {
      max = sum;
      min = sum;
    } else {
      if (cnt[8] + sum < 8) {
        max = sum + cnt[8];
        min = sum;
      } else {
        max = 8;
        min = sum;
      }
    }
  }
  cout << min << ' ' << max << endl;
  return 0;
}
