#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  int a[4800];
  int color[9] = {0, 0, 0, 0, 0, 0, 0, 0, 0};
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] <= 399)
      color[0] = 1;
    else if (a[i] <= 799)
      color[1] = 1;
    else if (a[i] <= 1199)
      color[2] = 1;
    else if (a[i] <= 1599)
      color[3] = 1;
    else if (a[i] <= 1999)
      color[4] = 1;
    else if (a[i] <= 2399)
      color[5] = 1;
    else if (a[i] <= 2799)
      color[6] = 1;
    else if (a[i] <= 3199)
      color[7] = 1;
    else {
      color[8] += 1;
    }
  }
  int min = 0, max = 0;
  for (int i = 0; i < 9 - 1; i++) {
    min += color[i];
  }
  max = min + color[8];
  cout << min << " " << max << "\n";
  return 0;
}
