#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<int>;
int a[9] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 10000};
int b[9];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    int j = 0;
    while (x >= a[j]) ++j;
    b[j]++;
  }
  int sol = 0;
  for (int i = 0; i < 8; ++i)
    if (b[i]) sol++;
  cout << max(1, sol) << ' ' << min(8, sol + b[8]);
}
