#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  bool color[8];
  for (int i = 0; i < 8; i++) {
    color[i] = false;
  }
  int free = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    if (rate < 3200) {
      color[rate / 400] = true;
    } else {
      free++;
    }
  }
  int sum = 0;
  for (int i = 0; i < 8; i++) {
    if (color[i]) sum++;
  }
  cout << max(1, sum) << " " << min(8, (sum + free)) << endl;
  return 0;
}
