#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, temp;
  int color[8] = {};
  int num_color = 0;
  int over3200 = 0;
  cin >> N;
  for (int i = 0; i < N; ++i) {
    cin >> temp;
    if (temp < 3200) {
      color[temp / 400] += 1;
    } else {
      over3200 += 1;
    }
  }
  for (int i = 0; i < 8; ++i) {
    if (color[i] > 0) {
      num_color += 1;
    }
  }
  cout << num_color << " " << num_color + over3200 << endl;
  return 0;
}
