#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<int> col(8, 0);
  int ncnt = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a <= 399)
      col[0]++;
    else if (a <= 799)
      col[1]++;
    else if (a <= 1199)
      col[2]++;
    else if (a <= 1599)
      col[3]++;
    else if (a <= 1999)
      col[4]++;
    else if (a <= 2399)
      col[5]++;
    else if (a <= 2799)
      col[6]++;
    else if (a <= 3199)
      col[7]++;
    else
      ncnt++;
  }
  int minval = 0;
  for (int i = 0; i < col.size(); i++) {
    if (col[i] > 0) minval++;
  }
  int maxval = minval + ncnt;
  if (minval == 0) minval = 1;
  if (maxval > 8) maxval = 8;
  cout << minval << " " << maxval << endl;
  return 0;
}
