#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int A[8] = {0};
  int gold = 0;
  for (int i = 0; i < N; ++i) {
    int a;
    cin >> a;
    if (a < 3200)
      A[a / 400] += 1;
    else
      ++gold;
  }
  int ans = 0;
  for (int i = 0; i < 8; ++i) {
    if (A[i]) ++ans;
  }
  cout << max(1, ans) << " " << min(8, ans + gold) << endl;
}
