#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, color[9], x, mini = 0;
  cin >> n;
  for (int i = 0; i < 9; i++) color[i] = 0;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (3200 <= x)
      color[8]++;
    else if (color[x / 400] == 0) {
      color[x / 400]++;
      mini += 1;
    }
  }
  cout << max(1, mini) << ' ' << min(9, mini + color[8]) << endl;
}
