#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<bool> v(8, false);
  int cnt = 0;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    for (int i = 1; i <= 8; i++) {
      if (x < i * 400) {
        v[i - 1] = true;
        break;
      }
    }
    if (x >= 3200) {
      cnt++;
    }
  }
  int Min = count(v.begin(), v.end(), true);
  cout << Min << " " << Min + cnt << endl;
  return 0;
}
