#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto&& i : a) {
    cin >> i;
  }
  sort(begin(a), end(a));
  int cnt = 1;
  for (int i = 1; i < n; i++) {
    if (3200 <= a[i]) break;
    cnt += a[i - 1] / 400 != a[i] / 400;
  }
  cout << cnt << " " << cnt + (end(a) - lower_bound(begin(a), end(a), 3200))
       << "\n";
}
