#include <bits/stdc++.h>
using namespace std;
int main() {
  int ans = 0;
  map<int, int> mp;
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int x;
    cin >> x;
    if (x >= 3200)
      ans++;
    else
      mp[x / 400]++;
  }
  cout << mp.size() << " " << min(ans + (int)mp.size(), 8) << endl;
}
