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