#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> usCol(9, 0);
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a > 3200) {
      a = 3200;
    }
    usCol[a / 400] += 1;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) {
    if (usCol[i] != 0) {
      ans += 1;
    }
  }
  if (ans == 0 && usCol[8] != 0) {
    cout << 1 << flush;
  } else {
    cout << ans << flush;
  }
  cout << " " << flush;
  if (ans + usCol[8] > 8) {
    cout << 8 << endl;
  } else {
    cout << ans + usCol[8] << endl;
  }
  return 0;
}
