#include <bits/stdc++.h>
using namespace std;
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
int main() {
  int n, a, cnt[15] = {}, sum1 = 0, sum2 = 0, cmin = 0, cmax = 0;
  bool flag = false;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    a /= 400;
    cnt[a]++;
    if (a >= 8) flag = true;
  }
  for (int i = 0; i < 8; i++) {
    if (cnt[i] != 0) sum1++;
  }
  for (int i = 8; i < 13; i++) {
    if (cnt[i] != 0) sum2++;
  }
  if (flag) {
    cmin = ++sum1;
    cmax = sum1 + sum2;
    cout << cmin << " " << cmax << endl;
  } else {
    cout << sum1 << " " << sum1 << endl;
  }
}
