#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> A(n);
  for (int i = 0; i < n; i++) cin >> A[i];
  vector<int> B(8, 0);
  int r = 0;
  for (int i = 0; i < n; i++) {
    if (A[i] < 3200)
      B[A[i] / 400]++;
    else
      r++;
  }
  int cnt = 0;
  for (int i = 0; i < 8; i++) {
    if (B[i]) cnt++;
  }
  int mi, ma;
  mi = cnt;
  ma = cnt + r;
  cout << mi << " " << ma << endl;
  return 0;
}
