#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  vector<int> color(9);
  for (int i = 0; i < 9; i++) {
    color[i] = 0;
  }
  for (int i = 0; i < n; i++) {
    if (a[i] / 400 < 3200) {
      color[(int)a[i] / 400]++;
    } else {
      color[8]++;
    }
  }
  int base = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i] > 0) {
      base++;
    }
  }
  int mn, mx;
  if (base == 0) {
    mn = 1;
  } else {
    mn = base;
  }
  mx = base + color[8];
  cout << mn << " " << mx << endl;
}
