#include <bits/stdc++.h>
using namespace std;
const int INF = INT_MAX;
int rate[10];
int main() {
  int N;
  cin >> N;
  for (int i = 0; (i) < (N); ++(i)) {
    int a;
    cin >> a;
    int idx = min(a / 400, 8);
    rate[idx]++;
  }
  int cnt = 0;
  for (int i = 0; (i) < (8); ++(i)) {
    if (rate[i] > 0) cnt++;
  }
  int minn = cnt, maxn = cnt;
  if (rate[8] > 0) {
    minn = max(minn, 1);
    maxn = min(8, cnt + rate[8]);
  }
  cout << minn << " " << maxn << endl;
  return 0;
}
