#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
using ll = long long;
unsigned gcd(unsigned a, unsigned b) {
  if (a < b) return gcd(b, a);
  unsigned r;
  while ((r = a % b)) {
    a = b;
    b = r;
  }
  return b;
}
int main() {
  int N;
  cin >> N;
  vector<int> a(N);
  for (long long i = 0, i_len = (N); i < i_len; ++i) cin >> a[i];
  vector<int> A(9, 0);
  for (long long i = 0, i_len = (N); i < i_len; ++i) {
    int x = a.at(i) / 400;
    if (x > 7) {
      x = 8;
    }
    A.at(x)++;
  }
  int ans1 = 0;
  for (long long i = 0, i_len = (8); i < i_len; ++i) {
    if (A.at(i)) ans1++;
  }
  int ans2 = ans1 + A.at(8);
  if (ans2 > 8) ans2 = 8;
  cout << ans1 << ' ' << ans2 << endl;
}
