#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); i++) cin >> a[i];
  vector<int> rate(9, 0);
  for (int i = 0; i < (n); i++) {
    if (a[i] <= 3199)
      rate[a[i] / 400]++;
    else
      rate[8]++;
  }
  int minc = 0;
  for (int i = 0; i < (8); i++) {
    if (rate[i] != 0) minc += 1;
  }
  int maxc = minc;
  maxc += +rate[8];
  if (maxc > 8) maxc = 8;
  cout << minc << " " << maxc << endl;
}
