#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const long long inf = 0x3f3f3f3f;
const long long mininf = -922337203685477;
const long long nax = 0;
unordered_map<int, int> color;
int sabeb = 0;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  int n;
  cin >> n;
  while (n--) {
    int x;
    cin >> x;
    if (x < 400)
      color[1] = 1;
    else if (x < 800)
      color[2] = 1;
    else if (x < 1200)
      color[3] = 1;
    else if (x < 1600)
      color[4] = 1;
    else if (x < 2000)
      color[5] = 1;
    else if (x < 2400)
      color[6] = 1;
    else if (x < 2800)
      color[7] = 1;
    else if (x < 3200)
      color[8] = 1;
    else
      sabeb++;
  }
  bool nah = 0;
  int mins = 0;
  int sums = 0;
  for (int i = 1; i <= 8; i++) mins += color[i];
  if (mins == 0 && sabeb >= 1) {
    mins = 1;
  }
  while (sabeb) {
    for (int i = 1; i <= 8; i++) {
      if (!color[i]) {
        sums++;
        sabeb--;
        nah = 1;
        break;
      }
    }
    if (!nah) sums++;
  }
  cout << mins << ' ' << sums + mins << '\n';
}
