#include <bits/stdc++.h>
using namespace std;
int v[1005];
int col[1006];
int main() {
  int n;
  cin >> n;
  int aux = 0;
  for (int i = 1; i <= n; i++) cin >> v[i];
  for (int i = 1; i <= n; i++) {
    if (v[i] >= 3200) {
      aux++;
      continue;
    }
    col[v[i] / 400]++;
  }
  int m;
  m = 0;
  for (int i = 0; i <= 100; i++) {
    if (col[i] != 0) {
      m++;
    }
  }
  cout << m << " " << m + aux;
  cout << "\n";
  return 0;
}
