#include <bits/stdc++.h>
using namespace std;
long long int gcd(long long int aaa, long long int bbb) {
  if (bbb == 0) {
    return aaa;
  }
  return gcd(bbb, aaa % bbb);
}
long long int lcm(long long int m, long long int n) {
  if ((0 == m) || (0 == n)) return 0;
  return ((m / gcd(m, n)) * n);
}
int main() {
  long N;
  cin >> N;
  long a[N];
  long Ma = 0, color = 0;
  map<long, long> m;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] >= 1 && a[i] <= 399) {
      m[0]++;
    } else if (a[i] >= 400 && a[i] <= 799) {
      m[1]++;
    } else if (a[i] >= 800 && a[i] <= 1199) {
      m[2]++;
    } else if (a[i] >= 1200 && a[i] <= 1599) {
      m[3]++;
    } else if (a[i] >= 1600 && a[i] <= 1999) {
      m[4]++;
    } else if (a[i] >= 2000 && a[i] <= 2399) {
      m[5]++;
    } else if (a[i] >= 2400 && a[i] <= 2799) {
      m[6]++;
    } else if (a[i] >= 2800 && a[i] <= 3199) {
      m[7]++;
    } else {
      m[8]++;
    }
  }
  for (int i = 0; i < 8; i++) {
    if (m[i] != 0) {
      color++;
    }
  }
  if (color == 0) {
    Ma = min(m[8], (long)8);
    cout << 1 << ' ' << Ma << endl;
  } else {
    Ma = min(color + m[8], (long)8);
    cout << color << ' ' << Ma << endl;
  }
  return 0;
}
