#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int color[8] = {0};
  int wild_card = 0;
  int rate;
  for (int i = 0; i < n; i++) {
    cin >> rate;
    if (rate <= 399)
      color[0] = 1;
    else if (rate <= 799)
      color[1] = 1;
    else if (rate <= 1199)
      color[2] = 1;
    else if (rate <= 1599)
      color[3] = 1;
    else if (rate <= 1999)
      color[4] = 1;
    else if (rate <= 2399)
      color[5] = 1;
    else if (rate <= 2799)
      color[6] = 1;
    else if (rate <= 3199)
      color[7] = 1;
    else
      wild_card += 1;
  }
  int min = 0;
  for (int i = 0; i < 8; i++)
    if (color[i] == 1) min += 1;
  int max;
  max = min + wild_card;
  if (max > 8) max = 8;
  cout << min << " " << max << endl;
  return 0;
}
