#include <bits/stdc++.h>
using namespace std;
long long N, n, m = 0, a = 0;
int main() {
  bool color[8];
  cin >> N;
  for (long long i = 0; i < N; i++) {
    cin >> n;
    if (n < 400)
      color[0] = 1;
    else if (n < 800)
      color[1] = 1;
    else if (n < 1200)
      color[2] = 1;
    else if (n < 1600)
      color[3] = 1;
    else if (n < 2000)
      color[4] = 1;
    else if (n < 2400)
      color[5] = 1;
    else if (n < 2800)
      color[6] = 1;
    else if (n < 3200)
      color[7] = 1;
    else
      m++;
  }
  for (long long i = 0; i < 8; i++) {
    if (color[i]) a++;
  }
  cout << max(a, (long long)1) << " " << a + m << endl;
}
