#include <bits/stdc++.h>
using namespace std;
int n, temp, minans, maxans;
bool valid[10];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    if (temp <= 399) {
      if (!valid[0]) {
        minans++;
        maxans++;
      }
      valid[0] = true;
    } else if (temp <= 799) {
      if (!valid[1]) {
        minans++;
        maxans++;
      }
      valid[1] = true;
    } else if (temp <= 1199) {
      if (!valid[2]) {
        minans++;
        maxans++;
      }
      valid[2] = true;
    } else if (temp <= 1599) {
      if (!valid[3]) {
        minans++;
        maxans++;
      }
      valid[3] = true;
    } else if (temp <= 1999) {
      if (!valid[4]) {
        minans++;
        maxans++;
      }
      valid[4] = true;
    } else if (temp <= 2399) {
      if (!valid[5]) {
        minans++;
        maxans++;
      }
      valid[5] = true;
    } else if (temp <= 2799) {
      if (!valid[6]) {
        minans++;
        maxans++;
      }
      valid[6] = true;
    } else if (temp <= 3199) {
      if (!valid[7]) {
        minans++;
        maxans++;
      }
      valid[7] = true;
    } else
      maxans++;
  }
  cout << minans << ' ' << maxans << '\n';
  return 0;
}
