#include <bits/stdc++.h>
using namespace std;
const long long int INF = (long long int)1e18;
int main() {
  int N;
  cin >> N;
  map<int, int> mp;
  int cnt = 0;
  for (int i = (0); i < (N); ++i) {
    int a;
    cin >> a;
    if (a / 400 < 8) {
      mp[a / 400]++;
    } else {
      cnt++;
    }
  }
  cout << mp.size() << " " << min((int)mp.size() + cnt, 8) << endl;
}
