#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(10, 0);
  int tmp;
  for (int i = 0; i < (int)n; i++) {
    cin >> tmp;
    if (tmp <= 3199) {
      a[tmp / 400]++;
    } else {
      a[9]++;
    }
  }
  int num = 0;
  for (int i = 0; i < (int)9; i++) {
    num += (a[i] > 0);
  }
  cout << max(1, num) << " " << min(8, num + a[9]) << endl;
}
