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