#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  cin >> N;
  vector<int> c(9, 0);
  for (int i = 0; i < N; i++) {
    int x;
    cin >> x;
    if (x >= 3200) {
      c[8]++;
      continue;
    }
    c[x / 400]++;
  }
  int min = 0, max = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] != 0) {
      min++;
      max++;
    }
  }
  max += c[8];
  cout << min << " " << max << endl;
  return 0;
}
