#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
int main() {
  int N;
  cin >> N;
  int ans = 0;
  vector<int> A(N);
  vector<int> B(8);
  int S = 0;
  for (int i = 0; i < (int)(8); i++) {
    B[i] = 0;
  }
  for (int i = 0; i < (int)(N); i++) {
    cin >> A[i];
    if (3200 <= A[i]) {
      S++;
    } else {
      B[A[i] / 400]++;
    }
  }
  for (int i = 0; i < (int)(8); i++) {
    if (B[i] != 0) {
      ans++;
    }
  }
  int p = ans + S;
  if (p == 0) {
    p = 1;
  }
  cout << max(ans, 1) << " " << min(8, p) << endl;
}
