#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int cnt = 0;
  int st = 0;
  int mn, mx;
  for (int i = 0; i <= 7; i++) {
    for (int j = 0; j < n; j++) {
      if (400 * i <= a[j] and a[j] < 400 * (i + 1)) {
        cnt++;
        break;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    if (3200 <= a[i]) {
      st++;
    }
  }
  if (cnt == 8) {
    mn = cnt;
    mx = cnt;
  } else if (cnt == 0) {
    mn = 1;
    mx = min(st, 8);
  } else {
    mn = cnt;
    mx = min(cnt + st, 8);
  }
  cout << mn << " " << mx << endl;
}
