#include <bits/stdc++.h>
using namespace std;
int A[102], B[9] = {}, N, W, ans = 0;
void solve() {
  for (int i = 0; i < N; ++i) {
    W = A[i] / 400;
    if (W <= 7) {
      B[W]++;
    } else {
      B[8]++;
    }
  }
  for (int i = 0; i < 8; ++i) {
    if (B[i] > 0) {
      ans++;
    }
  }
}
void answer() {
  cout << ans << " ";
  cout << ans + B[8] << "\n";
}
int main() {
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> A[i];
  }
  solve();
  answer();
  return 0;
}
