#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  vector<int> a;
  cin >> n;
  int min[8], max[8];
  for (int i = 0; i < 8; i++) {
    min[i] = 400 * i;
    max[i] = 400 * (i + 1) - 1;
  }
  min[0] = 1;
  for (int i = 0; i < n; i++) {
    int num;
    cin >> num;
    a.push_back(num);
  }
  sort(a.begin(), a.end());
  int color = 0;
  int k = 0;
  for (int colori = 0; colori < 8; colori++) {
    for (int i = 0; i < n; i++) {
      if (min[colori] <= a[i] && a[i] <= max[colori]) {
        color++;
        break;
      }
      k = i;
    }
  }
  for (int i = k; i < n; i++) {
    if (a[i] > max[7]) {
      break;
    }
    k = i;
  }
  int mincolor = color;
  int maxcolor = color + (n - k - 1);
  cout << mincolor << " " << maxcolor;
  return 0;
}
