#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int col[8];
  for (int i = 0; i < 8; ++i) col[i] = (i + 1) * 400;
  vector<bool> memo(8, true);
  int ansmax = 0, ansmin = 0;
  int n;
  cin >> n;
  int a;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    for (int j = 0; j < 8; ++j)
      if (memo[j] && a < col[j]) {
        ansmax++;
        ansmin++;
        memo[j] = false;
        break;
      }
    if (a >= 3200) ansmax++;
  }
  cout << ansmin << " " << ansmax << endl;
}
