#include <bits/stdc++.h>
using namespace std;
signed main() {
  long long a;
  long long c = 0;
  long long d = 0;
  long long e = 0;
  long long f = 0;
  long long g = 0;
  long long h = 0;
  long long j = 0;
  long long k = 0;
  long long l = 0;
  cin >> a;
  vector<long long> b(a);
  for (long long i = 0; i < a; ++i) cin >> b.at(i);
  for (long long i = 0; i < b.size(); ++i) {
    if (b.at(i) < 400) {
      d++;
      if (d == 1) c++;
    }
    if (400 <= b.at(i) && b.at(i) < 800) {
      e++;
      if (e == 1) c++;
    }
    if (800 <= b.at(i) && b.at(i) < 1200) {
      f++;
      if (f == 1) c++;
    }
    if (1200 <= b.at(i) && b.at(i) < 1600) {
      g++;
      if (g == 1) c++;
    }
    if (1600 <= b.at(i) && b.at(i) < 2000) {
      h++;
      if (h == 1) c++;
    }
    if (2000 <= b.at(i) && b.at(i) < 2400) {
      j++;
      if (j == 1) c++;
    }
    if (2400 <= b.at(i) && b.at(i) < 2800) {
      k++;
      if (k == 1) c++;
    }
    if (2800 <= b.at(i) && b.at(i) < 3200) {
      l++;
      if (l == 1) c++;
    }
    if (3200 <= b.at(i)) e++;
  }
  cout << c << ' ' << c + e;
}
