#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using IP = pair<int, int>;
const ll INF = 1LL << 62;
ll gcd(ll a, ll b) {
  if (a % b == 0)
    return b;
  else
    gcd(b, a % b);
}
ll lcm(ll a, ll b) { return (a / gcd(a, b)) * b; }
int main() {
  bool j[8] = {false};
  int n, mina = 0, maxa = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      maxa++;
    else
      j[a / 400] = true;
  }
  for (int i = 0; i < 8; i++) {
    if (j[i]) mina++;
  }
  maxa += mina;
  cout << mina << ' ' << maxa << endl;
  return 0;
}
