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