#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); i++) cin >> a[i];
  map<int, int> ma;
  for (int i = 0; i < (n); i++) {
    if (a[i] >= 3200)
      ma[8]++;
    else
      ma[a[i] / 400]++;
  }
  int MAX = 0;
  int MIN = 0;
  if (ma.count(8)) {
    int tourist = ma[8];
    int color = ma.size() - 1;
    MAX = color + tourist;
    MIN = color;
  } else {
    MAX = ma.size();
    MIN = ma.size();
  }
  cout << MIN << " " << MAX << endl;
}
