#include <bits/stdc++.h>
using namespace std;
int main() {
  map<string, int> _map;
  int n, x, cnt, color[10];
  while (cin >> n) {
    cnt = 0;
    memset(color, 0, sizeof(color));
    for (int i = 0; i < n; i++) {
      cin >> x;
      if (x < 400)
        color[0]++;
      else if (x < 800)
        color[1]++;
      else if (x < 1200)
        color[2]++;
      else if (x < 1600)
        color[3]++;
      else if (x < 2000)
        color[4]++;
      else if (x < 2400)
        color[5]++;
      else if (x < 2800)
        color[6]++;
      else if (x < 3200)
        color[7]++;
      else
        color[8]++;
    }
    for (int i = 0; i < 8; i++)
      if (color[i] == 0) cnt++;
    if (color[8] == 0)
      cout << 8 - cnt << " " << 8 - cnt << endl;
    else if (cnt >= color[8])
      cout << 8 - cnt << " " << 8 - cnt + color[8] << endl;
    else
      cout << 8 - cnt << " " << n << endl;
  }
  return 0;
}
