#include <bits/stdc++.h>
using ll = long long;
static const ll mod = 1e9 + 7;
static ll INF = 1e9;
using namespace std;
signed main() {
  int n;
  cin >> n;
  set<int> a;
  int type = 0;
  for (int i = (int)0; i < (int)n; ++i) {
    int m;
    cin >> m;
    if (m < 3200)
      a.insert(m / 400);
    else
      ++type;
  }
  cout << a.size() << " " << a.size() + type << endl;
  return 0;
}
