#include <bits/stdc++.h>
using namespace std;
const int MOD = 1000000007;
const int INF = 2147483647;
int main(void) {
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < (N); ++i) cin >> a[i];
  int color[9];
  for (int i = 0; i < (9); ++i) color[i] = 0;
  for (int i = 0; i < (N); ++i) {
    for (int j = 0; j < (8); ++j) {
      if (j * 400 <= a[i] && a[i] < (j + 1) * 400) {
        color[j] = 1;
      }
    }
    if (3200 <= a[i]) {
      ++color[8];
    }
  }
  int mn = 0;
  for (int i = 0; i < (8); ++i) mn += color[i];
  if (mn == 0) {
    ++mn;
    --color[8];
  }
  int max = mn;
  max += min(8 - mn, color[8]);
  cout << mn << " " << max << endl;
  return 0;
}
