#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const double PI = acos(-1.0);
const long long MOD = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = (int)0; i < (int)n; ++i) cin >> a[i];
  set<int> color;
  int nc = 0;
  for (int i = (int)0; i < (int)n; ++i) {
    if (a[i] >= 3200)
      nc++;
    else
      color.insert(a[i] / 400);
  }
  cout << color.size() << " " << color.size() + nc << endl;
  return 0;
}
