#include <bits/stdc++.h>
using namespace std;
int getColor(int rate) {
  if (rate >= 1 && rate <= 399) {
    return 0;
  } else if (rate >= 400 && rate <= 799) {
    return 1;
  } else if (rate >= 800 && rate <= 1199) {
    return 2;
  } else if (rate >= 1200 && rate <= 1599) {
    return 3;
  } else if (rate >= 1600 && rate <= 1999) {
    return 4;
  } else if (rate >= 2000 && rate <= 2399) {
    return 5;
  } else if (rate >= 2400 && rate <= 2799) {
    return 6;
  } else if (rate >= 2800 && rate <= 3199) {
    return 7;
  } else {
    return 8;
  }
}
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> people(9, 0);
  for (auto i = 0; i < n; i++) {
    int a_i;
    cin >> a_i;
    a[i] = a_i;
  }
  for (auto i = 0; i < n; i++) {
    people[getColor(a[i])] += 1;
  }
  int num = 0;
  for (auto i = 0; i < 8; i++) {
    if (people[i] > 0) {
      num += 1;
    }
  }
  int min, max;
  if (num == 0) {
    min = 1;
    max = people[8];
  } else {
    min = num;
    max = num + people[8];
  }
  if (max > 8) {
    max = 8;
  }
  cout << min << " " << max << endl;
}
