#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1LL << 60;
int main() {
  vector<int> cnt(9, 0);
  int n;
  cin >> n;
  for (int j = 0; j < n; j++) {
    int temp;
    cin >> temp;
    temp /= 400;
    if (temp > 8) temp = 8;
    cnt[temp]++;
  }
  int cntmin = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (cnt[i] > 0) cntmin++;
  }
  if (cntmin == 0 && cnt[8] != 0) cntmin++;
  int cntmax = 0;
  for (int i = 0; i < (int)(8); i++) {
    if (cnt[i] > 0) cntmax++;
  }
  cntmax += cnt[8];
  if (cntmax > 8) cntmax = 8;
  cout << cntmin << ' ' << cntmax << endl;
}
