#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); i++) cin >> a[i];
  vector<int> color(8, 0);
  int all = 0;
  for (int i = 0; i < (n); i++) {
    if (a[i] < 400) {
      color[0]++;
    } else if (a[i] >= 3200) {
      all++;
    } else {
      for (int j = 1; j < 8; j++) {
        if (400 * j <= a[i] && a[i] < 400 * (j + 1)) {
          color[j]++;
        }
      }
    }
  }
  int mn = 0, mx = 0;
  for (int i = 0; i < (8); i++) {
    if (color[i] > 0) {
      mn++;
      mx++;
    } else {
      if (all > 0) {
        mx++;
        all--;
      }
    }
  }
  cout << mn << endl << mx << endl;
  return 0;
}
