#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using tiii = tuple<int, int, int>;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vpii = vector<pair<int, int>>;
int main() {
  int n;
  cin >> n;
  int min_cnt = 0, max_cnt = 0;
  vi vec(8, 0);
  vi a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] / 400 < 8) vec[a[i] / 400]++;
    if (a[i] / 400 >= 8) max_cnt++;
  }
  for (int i = 0; i < 8; i++) {
    if (vec[i] != 0) {
      min_cnt++;
      max_cnt++;
    }
  }
  cout << min_cnt << " " << max_cnt << endl;
}
