#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(9, 0);
  int a;
  for (int i = 0; i < (int)(n); ++i) {
    cin >> a;
    if (a <= 399)
      v[0]++;
    else if (a <= 799)
      v[1]++;
    else if (a <= 1199)
      v[2]++;
    else if (a <= 1599)
      v[3]++;
    else if (a <= 1999)
      v[4]++;
    else if (a <= 2399)
      v[5]++;
    else if (a <= 2799)
      v[6]++;
    else if (a <= 3199)
      v[7]++;
    else
      v[8]++;
  }
  int colors = 0;
  int zero = 0;
  for (int i = 0; i < (int)(v.size() - 1); ++i) {
    if (v[i] > 0)
      colors++;
    else
      zero++;
  }
  int free = v[8];
  int maxc = colors + min(zero, free);
  int minc = colors == 0 ? 1 : colors;
  0;
  printf("%d %d\n", minc, maxc);
  return 0;
}
