#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  bool if_color[8];
  int chameleon = 0;
  for (int i = 0; i < 8; i++) {
    if_color[i] = false;
  }
  for (int i = 0; i < N; i++) {
    int rate;
    cin >> rate;
    bool if_chose = false;
    for (int j = 0; j < 8; j++) {
      if (rate < j * 400 + 400) {
        if_color[j] = true;
        if_chose = true;
        break;
      }
    }
    if (!if_chose) {
      chameleon++;
    }
  }
  int rate_colors = 0;
  for (int i = 0; i < 8; i++) {
    rate_colors += if_color[i];
  }
  cout << max(rate_colors, 1) << " " << min(rate_colors + chameleon, 8) << endl;
}
