#include <bits/stdc++.h>
using namespace std;
const double PI = acos(-1);
const double EPS = 1e-7;
const int inf = 1e9;
const long long INF = 2e18;
int dx[] = {0, 1, 0, -1};
int dy[] = {1, 0, -1, 0};
int main() {
  int n;
  cin >> n;
  vector<int> in(10);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    in[a / 400]++;
  }
  int co = 0, co1;
  for (int i = 0; i < 8; i++)
    if (in[i]) co++;
  co1 = co;
  if (in[8]) {
    if (co1 == 0) co1++;
    co += in[8];
  }
  cout << co1 << " " << co << endl;
}
