#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  vector<int> rate(8);
  int red = 0;
  for (int i = 0; i < (n); ++i) {
    int ibuff;
    cin >> ibuff;
    if (ibuff <= 399)
      rate.at(0)++;
    else if (ibuff <= 799)
      rate.at(1)++;
    else if (ibuff <= 1199)
      rate.at(2)++;
    else if (ibuff <= 1599)
      rate.at(3)++;
    else if (ibuff <= 1999)
      rate.at(4)++;
    else if (ibuff <= 2399)
      rate.at(5)++;
    else if (ibuff <= 2799)
      rate.at(6)++;
    else if (ibuff <= 3199)
      rate.at(7)++;
    else
      red++;
  }
  int zeroCnt = 0;
  int minValue = 0, maxValue = 0;
  for (int i = 0; i < (rate.size()); ++i) {
    if (rate.at(i) == 0) zeroCnt++;
  }
  minValue = rate.size() - zeroCnt;
  if (zeroCnt >= red)
    maxValue = minValue + red;
  else if (zeroCnt < red)
    maxValue = 8;
  cout << minValue << " " << maxValue << endl;
  return 0;
}
