#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  map<int, int> mp;
  for (int i = 0; i < (n); i++) {
    int v;
    cin >> v;
    v /= 400;
    if (v >= 8) {
      mp[8]++;
    } else {
      mp[v]++;
    }
  }
  int min = 0, max = 0;
  for (int i = 0; i < (8); i++) {
    if (mp[i] != 0) {
      min++;
    }
  }
  max = min + mp[8];
  cout << min << " " << max;
  return 0;
}
