#include <bits/stdc++.h>
using namespace std;
int m[9], N;
int main() {
  cin >> N;
  while (N--) {
    int z;
    cin >> z;
    m[min(8, z / 400)]++;
  }
  N = 0;
  for (int i = 0; i < 8; i++)
    if (m[i]) N++;
  if (N == 0)
    cout << 1 << ' ' << m[8];
  else
    cout << N << ' ' << min(8, m[8] + N);
  return 0;
}
