#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int r[n];
  int c[9] = {0};
  for (int i = 0; i < n; i++) {
    cin >> r[i];
    if (r[i] <= 399)
      c[0]++;
    else if (r[i] >= 400 && r[i] <= 799)
      c[1]++;
    else if (r[i] >= 800 && r[i] <= 1199)
      c[2]++;
    else if (r[i] >= 1200 && r[i] <= 1599)
      c[3]++;
    else if (r[i] >= 1600 && r[i] <= 1999)
      c[4]++;
    else if (r[i] >= 2000 && r[i] <= 2399)
      c[5]++;
    else if (r[i] >= 2400 && r[i] <= 2799)
      c[6]++;
    else if (r[i] >= 2800 && r[i] <= 3199)
      c[7]++;
    else
      c[8]++;
  }
  int min = 0;
  for (int i = 0; i < 8; i++) {
    if (c[i] > 0) min++;
  }
  int max = min + c[8];
  if (min > 0 && max <= 8)
    cout << min << " " << max << endl;
  else if (min == 0 && max <= 8)
    cout << max << " " << max << endl;
  else if (min > 0 && max > 8)
    cout << min << " " << 8 << endl;
  else if (min == 0 && max > 8)
    cout << 8 << " " << 8 << endl;
  return 0;
}
