#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  vector<int> a(8, 0);
  for (int i = 0; i < (n); ++i) {
    int m;
    cin >> m;
    if (m >= 3200)
      ++a[8 - 1];
    else
      ++a[m / 400];
  }
  int min = 0, max = 0;
  for (int i = 0; i < (8); ++i) {
    if (a[i]) {
      ++min;
      ++max;
    }
  }
  if (a[7]) max += a[7] - 1;
  if (max >= 7) max = 7;
  cout << min << ' ' << max << endl;
  return 0;
}
