#include <bits/stdc++.h>
using namespace std;
int n;
int a[100];
bool used[8];
int usedNum = 0;
signed main() {
  int i;
  cin >> n;
  for (i = 0; i < n; i++) cin >> a[i];
  int jiyuu = 0;
  for (i = 0; i < n; i++) {
    if (a[i] >= 3200) {
      jiyuu++;
    } else if (!used[a[i] / 400]) {
      used[a[i] / 400] = true;
      usedNum++;
    }
  }
  if (usedNum == 0) {
    cout << 1 << endl;
    return 0;
  }
  cout << usedNum << " " << usedNum + jiyuu << endl;
  return 0;
}
