#include <bits/stdc++.h>
using namespace std;
int n;
int col[8] = {};
int cou = 0;
int colors = 0;
int b;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> b;
    b /= 400;
    if (b > 7) {
      cou++;
    } else {
      if (col[b] == 0) {
        colors++;
      }
      col[b] = 1;
    }
  }
  if (colors == 0) {
    cout << 1 << " ";
  } else {
    cout << colors << " ";
  }
  colors += cou;
  if (colors > 8) {
    cout << 8 << endl;
  } else {
    cout << colors << endl;
  }
  return 0;
}
