#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
const int inf = 1e9 + 7;
int dy[] = {0, 0, -1, 1, -1, 1, -1, 1};
int dx[] = {1, -1, 0, 0, -1, 1, 1, -1};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int mp[8] = {0};
  int n;
  cin >> n;
  int cc = 0;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a < 3199)
      mp[a / 400]++;
    else
      cc++;
  }
  int c = 0;
  for (int i = 0; i < 7 + 1; ++i) {
    if (mp[i]) c++;
  }
  if (cc) {
    cout << c << " " << c + cc << endl;
  } else {
    cout << c << " " << c << endl;
  }
}
