#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  int col[9] = {};
  for (int i = 0; i < n; i++) {
    int tmp;
    cin >> tmp;
    if (tmp <= 399)
      col[0] = 1;
    else if (tmp <= 799)
      col[1] = 1;
    else if (tmp <= 1199)
      col[2] = 1;
    else if (tmp <= 1599)
      col[3] = 1;
    else if (tmp <= 1999)
      col[4] = 1;
    else if (tmp <= 2399)
      col[5] = 1;
    else if (tmp <= 2799)
      col[6] = 1;
    else if (tmp <= 3199)
      col[7] = 1;
    else
      col[8]++;
  }
  int mi =
      col[0] + col[1] + col[2] + col[3] + col[4] + col[5] + col[6] + col[7];
  int ma = mi + col[8];
  cout << mi << " " << ma << endl;
}
