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