#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000007;
int main() {
  int n;
  cin >> n;
  int a[110] = {0};
  for (int i = 0; i < n; i++) cin >> a[i];
  int cnt;
  int color[9] = {0};
  for (int i = 0; i < n; i++) {
    color[min(a[i] / 400, 8)]++;
  }
  int kind;
  for (int i = 0; i < 8; i++) {
    if (color[i] != 0) kind++;
  }
  cout << kind << " " << kind + color[8] << endl;
  return 0;
}
