#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int rate[9];
  for (int i = 0; i < 9; i++) {
    rate[i] = 0;
  }
  cin >> n;
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    int key = tmp / 400;
    if (key > 8) key = 8;
    rate[key]++;
  }
  int max = 0;
  int min = 0;
  for (int i = 0; i < 8; i++) {
    if (rate[i] != 0) {
      max++;
      min++;
    }
  }
  max += rate[8];
  cout << min << " " << max << endl;
}
