#include <bits/stdc++.h>
using namespace std;
const int N = 111;
int n, m, k, mi, ma;
int a[N];
int col[9];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> k;
    if (k > 3200)
      col[8]++;
    else
      col[k / 400]++;
  }
  for (int i = 0; i < 8; i++)
    if (col[i]) mi++;
  ma = mi;
  if (mi + col[8] < 9)
    ma = mi + col[8];
  else
    ma = 9;
  cout << mi << " " << ma;
  return 0;
}
