#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int col[9] = {};
  for (int i = 0, a; i < n; ++i) {
    cin >> a;
    if (a < 3200)
      col[a / 400]++;
    else
      col[8]++;
  }
  int maxn = 0, minn = 0;
  for (int i = 0; i < 8; ++i)
    if (col[i]) minn++;
  maxn = minn;
  maxn += col[8];
  cout << minn << " " << maxn << endl;
  return 0;
}
