#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int cnt = 0;
  set<int> v;
  for (int i = 0; i < (N); ++i) {
    int tmp;
    cin >> tmp;
    if (tmp >= 3200)
      cnt++;
    else {
      int colorN = tmp / 400;
      v.insert(colorN);
    }
  }
  int minv = v.size();
  int maxv = minv + cnt;
  maxv = min(maxv, 8);
  minv = max(minv, 1);
  cout << minv << " " << maxv << endl;
  return 0;
}
