#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(8);
  int v_9 = 0;
  for (int i = 0; i < (int)(n); ++i) {
    int a;
    cin >> a;
    if (3200 <= a)
      v_9++;
    else {
      for (int i = 0; i < (int)(8); ++i) {
        if (400 * i <= a && a < 400 + 400 * i) v[i]++;
      }
    }
  }
  sort((v).begin(), (v).end(), greater<int>());
  int ans1 = 0, ans2 = 0;
  for (int i = 0; v[i] != 0; i++) {
    ans1++;
  }
  ans2 = min(ans1 + v_9, 8);
  cout << min(ans1, 1) << " " << ans2 << endl;
  return 0;
}
