#include <bits/stdc++.h>
using namespace std;
int cnt[10] = {0}, n, a[10000];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    a[i] /= 400;
    if (a[i] > 8) a[i] = 8;
    cnt[a[i]]++;
  }
  int tot = 0;
  for (int i = 0; i < 8; i++)
    if (cnt[i] > 0) tot++;
  cout << tot << " " << tot + cnt[8];
}
