#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> color(8);
  int more = 0;
  int val;
  for (int i = 0; i < n; i++) {
    cin >> val;
    val = val / 400;
    if (val < 8) color[val] = 1;
    if (val >= 8) more++;
  }
  int color_count = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) color_count++;
  }
  cout << max(1, color_count) << " " << min(color_count + more, 8) << endl;
}
