#include <bits/stdc++.h>
using namespace std;
long long wari(long long a, long long b) {
  if (a % b == 0)
    return a / b;
  else
    return a / b + 1;
}
long long keta(long long a) {
  double b = a;
  b = log10(b);
  long long c = b;
  return c + 1;
}
long long souwa(long long a) { return a * (a + 1) / 2; }
long long lcm(long long a, long long b) {
  long long d = a, e = b, f;
  if (a < b) swap(a, b);
  long long c, m = 1;
  while (m) {
    c = a % b;
    if (c == 0) {
      f = b;
      m--;
    } else {
      a = b;
      b = c;
    }
  }
  return d * e / f;
}
long long gcm(long long a, long long b) {
  long long d = a, e = b, f;
  if (a < b) swap(a, b);
  long long c, m = 1;
  while (m) {
    c = a % b;
    if (c == 0) {
      f = b;
      m--;
    } else {
      a = b;
      b = c;
    }
  }
  return f;
}
signed main() {
  long long a, c, d = 0;
  cin >> a;
  vector<long long> b(9, 0);
  for (long long i = 0; i < a; i++) {
    cin >> c;
    b.at(min<long long>(8, c / 400))++;
  }
  for (long long i = 0; i < 8; i++) {
    if (b.at(i) > 0) d++;
  }
  cout << d << endl << d + b.at(8) << endl;
}
