#include <bits/stdc++.h>
using namespace std;


int main() {
  int N;
  cin >> N;
  vector<int> cols(9);
  for (int i=0; i<N; ++i) {
    int rate;
    cin >> rate;
    int start = 0;
    for (int j=0; start!=2800; start+=400, ++j) {
      if (start <= rate <= start + 399) {
        ++cols[j];
        break;
      }
    }
    if (3200 <= rate) {
      ++cols[j+1];
    }
  }
  int min_n = 0, max_n = 0;
  int cnt = 0;
  for (int i=0; i<9; ++i) {
    if (i != 8) {
      if (0 < cols[i]) {
        ++min_n, ++max_n;
        ++cnt;
      }
    } else {
      min_n += max(0, 2 - cnt);
      max_n += cols[i];
    }
  }
  cout << min_n << " " << max_n << endl;
}