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