#include <bits/stdc++.h>
using namespace std;
int n;
vector<int> a;
void mainmain() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    int m;
    cin >> m;
    a.push_back(m);
  }
  int ans = 0;
  int freeColor = 0;
  for (int i = 0; i < a.size(); i++) {
    if (a[i] / 400 >= 8) {
      ++freeColor;
      continue;
    }
    ans |= (1 << a[i] / 400);
  }
  int count = 0;
  for (; ans; ans &= ans - 1) {
    ++count;
  }
  int max = count + freeColor >= 8 ? 8 : count + freeColor;
  int min = count == 0 ? 1 : count;
  cout << min << " " << max << endl;
}
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  mainmain();
  return 0;
}
