#include <bits/stdc++.h>
using namespace std;
const double PI = 3.1415926535897932;
const double EPS = 1e-15;
const long long mod = 1e+9 + 7;
const int INF = 1001001001;
int color(int x) {
  if (x < 400) return 0;
  if (x < 800) return 1;
  if (x < 1200) return 2;
  if (x < 1600) return 3;
  if (x < 2000) return 4;
  if (x < 2400) return 5;
  if (x < 2800) return 6;
  if (x < 3200) return 7;
  return 8;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  vector<int> cnt(10, 0);
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    ++cnt[color(a)];
  }
  int resmin = 0;
  for (int i = 0; i < 8; ++i) {
    if (cnt[i] > 0) ++resmin;
  }
  int resmax = 0;
  int limit = 8;
  int rest = limit - resmin;
  resmax = resmin + min(rest, cnt[8]);
  cout << resmin << " " << resmax << endl;
}
