#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, ex = 0, cnt = 0;
  vector<int> c(8, 0);
  cin >> N;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a < 3200)
      c[a / 400]++;
    else
      ex++;
  }
  for (int i = 0; i < 8; i++) {
    if (c[i] > 0) cnt++;
  }
  if (cnt == 0)
    cout << "1 ";
  else
    cout << cnt << " ";
  if (ex == 0)
    cout << cnt << endl;
  else if (cnt + ex < 8)
    cout << cnt + ex << endl;
  else
    cout << "8" << endl;
}
