#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  int min = 1;
  int max = 1;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    cin >> v[i];
  }
  vector<bool> flag(8, false);
  for (int i = 0; i < n; i++) {
    if (v[i] >= 3200) {
      max = (max != 8) ? max + 1 : max;
    } else {
      for (int j = 0; j < 8; j++) {
        if (!flag[j] && 400 * (j) <= v[i] && v[i] < 400 * (j + 1)) {
          flag[j] = true;
          if (i != 0) {
            min++;
            max++;
          }
        }
      }
    }
  }
  cout << min << " " << max << endl;
  return 0;
}
