#include <bits/stdc++.h>
using namespace std;
const int MOD = 1e9 + 7;
int main() {
  int N;
  cin >> N;
  vector<int> A(N);
  for (int i = 0, i_len = (N); i < i_len; ++i) cin >> A[i];
  vector<int> color(9, 0);
  for (int i = 0, i_len = (N); i < i_len; ++i) {
    A[i] /= 400;
    A[i] = min(A[i], 8);
    color[(A[i] < 8 ? A[i] : 8)]++;
  }
  int ans = 0;
  for (int i = 0, i_len = (8); i < i_len; ++i)
    if (color[i] > 0) ans++;
  cout << ans << " " << min(8, ans + color[8]) << endl;
  return 0;
}
