#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long int n;
  cin >> n;
  vector<long long int> v;
  for (long long int abc = 0; abc < n; abc++) {
    long long int xyz;
    cin >> xyz;
    v.push_back(xyz);
  };
  vector<long long int> c(9, 0);
  for (long long int i = 0; i < n; i++) {
    if (v[i] < 400) {
      c[0]++;
    } else if (v[i] < 800) {
      c[1]++;
    } else if (v[i] < 1200) {
      c[2]++;
    } else if (v[i] < 1600) {
      c[3]++;
    } else if (v[i] < 2000) {
      c[4]++;
    } else if (v[i] < 2400) {
      c[5]++;
    } else if (v[i] < 2800) {
      c[6]++;
    } else if (v[i] < 3200) {
      c[7]++;
    } else {
      c[8]++;
    }
  }
  long long int c1 = 0, c2 = 0;
  for (long long int i = 0; i < 8; i++) {
    if (c[i] > 0) {
      c1++;
    }
  }
  c2 = c[8];
  cout << max(c1, c2) << " ";
  cout << c1 + c2 << endl;
  return 0;
}
