#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 1;
const long long LLINF = 1e17 + 1;
const double EPS = 0.000000000001;
const int DX[9] = {0, 0, 1, -1, 1, 1, -1, -1, 0};
const int DY[9] = {1, -1, 0, 0, 1, -1, 1, -1, 0};
const int MOD = 1e9 + 7;
const double PI = 3.14159265358979323846264338327950288;
int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  cout << fixed << setprecision(15);
  int N, M;
  cin >> N;
  vector<int> A(N);
  for (int i = 0; i < N; i++) {
    cin >> A[i];
  }
  vector<int> rate(9);
  for (int i = 0; i < 9; i++) {
    rate[i] = 0;
  }
  for (int i = 0; i < N; i++) {
    rate[min(A[i], 3300) / 400]++;
  }
  int origin = 0;
  for (int i = 0; i < 8; i++) {
    origin += bool(rate[i]);
  }
  int plus = rate[8];
  cout << max(origin, 1) << " " << min(origin + plus, 8);
}
