#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int n, a, c[9], cnt = 0, tu = 0;
  cin >> n;
  for (int i = 0; i < 9; ++i) c[i] = 0;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    if (c[(a / 400)] == 0) {
      if (a < 3200) {
        ++cnt;
        c[(a / 400)] = 1;
      } else
        ++tu;
    }
  }
  if ((cnt + tu) > 8)
    cout << max(cnt, 1) << " 8\n";
  else
    cout << max(cnt, 1) << " " << cnt + tu << endl;
}
