#include <bits/stdc++.h>
using namespace std;
const int MOD = (int)1e9 + 7;
int main(int argc, char const *argv[]) {
  int N;
  cin >> N;
  vector<int> a(N);
  vector<bool> a_bool(8);
  int complement = 0;
  for (int i = 0; i < (N); ++i) {
    cin >> a[i];
    if (a[i] / 400 < 8) {
      a_bool[a[i] / 400] = true;
    } else {
      complement++;
    }
  }
  int ans = 0;
  for (int i = 0; i < (8); ++i) {
    if (a_bool[i]) ans++;
  }
  cout << ans << " " << min(ans + complement, 8) << endl;
  return 0;
}
