#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using VI = vector<int>;
using VVI = vector<vector<int>>;
using P = pair<int, int>;
int main() {
  int n;
  cin >> n;
  set<int> colors;
  int free = 0;
  for (int i = 0; i < (int)(n); i++) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8) {
      a = 8;
      free++;
    }
    colors.insert(a);
  }
  int min, max;
  if (free > 0) {
    min = colors.size() - 1;
    max = colors.size() + free - 1;
  } else {
    min = colors.size();
    max = colors.size();
  }
  cout << min << " " << max << endl;
  return 0;
}
