#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
int main() {
  vector<bool> b(8, false);
  int tuyoi = 0;
  int n;
  cin >> n;
  ;
  for (ll i = 0; i < (ll)n; i++) {
    int rate;
    cin >> rate;
    int cnt = 0;
    for (int j = 0; j < 3200; j += 400) {
      if (rate >= 3200) {
        tuyoi++;
        break;
      }
      if (j <= rate && rate < j + 400) b[cnt] = true;
      cnt++;
    }
  }
  int iro = 0;
  ;
  for (ll i = 0; i < (ll)8; i++) {
    if (b[i] == true) iro++;
  }
  cout << iro << " " << min(iro + tuyoi, 8) << endl;
}
