#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  map<int, int> m;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    m[a < 3200 ? a / 400 : 8]++;
  }
  int ans = m.size() - (m.find(8) != end(m));
  cout << ans << " " << ans + m[8] << endl;
}
