#include <bits/stdc++.h>
using namespace std;
int color(int score) {
  for (int i = 1; i < 9; ++i) {
    if (score < i * 400) {
      return i;
    }
  }
  return 9;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n;
  cin >> n;
  set<int> colors;
  int frees = 0;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    int col = color(a);
    if (col == 9)
      ++frees;
    else
      colors.insert(col);
  }
  cout << max(1lu, colors.size()) << " " << min(8lu, colors.size() + frees)
       << "\n";
}
