#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> v;
  int tmp;
  int a[9];
  memset((a), 0, sizeof(a));
  for (long long i = 0; i < (long long)(n); i++) {
    cin >> tmp;
    v.emplace_back(tmp);
    if (tmp < 400)
      a[0] = 1;
    else if (tmp < 800)
      a[1] = 1;
    else if (tmp < 1200)
      a[2] = 1;
    else if (tmp < 1600)
      a[3] = 1;
    else if (tmp < 2000)
      a[4] = 1;
    else if (tmp < 2400)
      a[5] = 1;
    else if (tmp < 2800)
      a[6] = 1;
    else if (tmp < 3200)
      a[7] = 1;
    else
      a[8]++;
  }
  int cnt = 0, amax = 0, amin = 0;
  for (long long i = 0; i < (long long)(8); i++) {
    if (a[i] == 1) cnt++;
  }
  if (a[8] == 0) {
    amax = amin = cnt;
  } else {
    if (cnt == 0) {
      amax = min(8, a[8]);
      amin = 1;
    } else {
      amax = min(8, cnt + a[8]);
      amin = cnt;
    }
  }
  cout << amin << " " << amax << endl;
  return 0;
}
