#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
static const double PI = acos(-1);
static const int INF = 1e9 + 7;
int main() {
  int n;
  cin >> n;
  const int CMAX = 9;
  vector<int> color(CMAX);
  for (int i = 0; i < (CMAX); ++i) color[i] = 0;
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    for (int i = 0; i < (CMAX - 1); ++i) {
      if (a >= 3200) {
        color[8]++;
        break;
      }
      if (a < (i + 1) * 400) {
        color[i]++;
        break;
      }
    }
  }
  int cnt = 0;
  for (int i = 0; i < (CMAX - 1); ++i) {
    if (color[i] == 0) continue;
    cnt++;
  }
  int ansmin = max(1, cnt);
  int ansmax = min(cnt + color[8], 8);
  cout << ansmin << " " << ansmax << endl;
  return 0;
}
