#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto &e : a) cin >> e;
  int color[8] = {};
  int crown = 0;
  for (int i = 0; i < n; ++i) {
    if (a[i] < 3200)
      color[a[i] / 400]++;
    else
      crown++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; ++i) {
    if (color[i] > 0) cnt++;
  }
  cout << (cnt == 0 && crown > 0 ? 1 : cnt) << ' ' << min(8, cnt + crown)
       << endl;
  return 0;
}
