#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9;
const long long LINF = 1e18;
struct edge {
  int to, cost;
};
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  int a[n];
  set<int> rate;
  int tmp, num = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (tmp = a[i] / 400, tmp < 8)
      rate.insert(tmp);
    else
      num++;
  }
  cout << rate.size() << " " << rate.size() + num << "\n";
  return 0;
}
