#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int rate[9] = {400, 800, 1200, 1600, 2000, 2400, 2800, 3200, 4800}, n,
      zohe = 0, ehoz = 0;
  bool color[8] = {};
  cin >> n;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    for (int i = 0; i < 9; i++) {
      if (i == 8) {
        zohe++;
        break;
      }
      if (a < rate[i]) {
        color[i] = true;
        break;
      }
    }
  }
  for (int i = 0; i < 8; i++)
    if (color[i]) ehoz++;
  cout << ehoz << ' ' << ehoz + zohe << endl;
}
