#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 7;
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (auto& i : a) {
    cin >> i;
  }
  sort(a.begin(), a.end());
  set<int> s;
  for (auto i = a.begin(), e = lower_bound(a.begin(), a.end(), 3200); i != e;
       ++i) {
    s.insert(*i / 400);
  }
  cout << s.size() << " "
       << static_cast<int>(s.size() +
                           (a.end() - lower_bound(a.begin(), a.end(), 3200)))
       << "\n";
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  solve();
}
