#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  vector<bool> a(8, false);
  int haba = 0, ans = 0;
  for (int i = 0; i < N; i++) {
    int rate;
    cin >> rate;
    for (int j = 0; j < 8; j++) {
      if (rate >= 400 * j && rate < 400 * (j + 1)) {
        a.at(j) = true;
        continue;
      }
    }
    if (rate >= 3200) haba++;
  }
  for (int i = 0; i < 8; i++) {
    if (a[i]) ans++;
  }
  cout << ans << " " << ans + haba << endl;
}
