#include <bits/stdc++.h>
using namespace std;
int rate[9] = {0};
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    if (a < 400)
      rate[0]++;
    else if (a < 800)
      rate[1]++;
    else if (a < 1200)
      rate[2]++;
    else if (a < 1600)
      rate[3]++;
    else if (a < 2000)
      rate[4]++;
    else if (a < 2400)
      rate[5]++;
    else if (a < 2800)
      rate[6]++;
    else if (a < 3200)
      rate[7]++;
    else
      rate[8]++;
  }
  int mini = 0, maxi = 0;
  for (int i = 0; i < 8; ++i) {
    if (rate[i] > 0) {
      mini++;
      maxi++;
    }
  }
  mini = max(1, mini);
  maxi = min(8, maxi + rate[8]);
  cout << mini << " " << maxi << endl;
  return 0;
}
