#include <bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using vs = vector<string>;
using vll = vector<long long int>;
using vvi = vector<vi>;
const long long int MOD = 1e9 + 7;
int main() {
  int N;
  cin >> N;
  vi a(N);
  for (long long int i = 0; i < N; i++) {
    cin >> a[i];
  }
  int anycolor = 0;
  set<int> color;
  for (long long int i = 0; i < N; i++) {
    for (long long int j = 0; j < 8; j++) {
      if (a[i] >= 400 * j && a[i] < 400 * (j + 1)) color.insert(j);
    }
    if (a[i] >= 3200) anycolor++;
  }
  int mini;
  int maxi;
  if (!color.empty()) {
    mini = color.size();
    maxi = min(8, mini + anycolor);
  } else {
    mini = 1;
    maxi = min(8, anycolor);
  }
  cout << mini << " " << maxi << endl;
}
