#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
int n;
vector<int> a;
bool use[9] = {false};
int main(void) {
  cin >> n;
  int ret = 0;
  int all = 0;
  for (int i = 0; i < n; i++) {
    int ai;
    cin >> ai;
    if (ai < 400) {
      if (use[0]) continue;
      ret++;
      use[0] = true;
    } else if (ai < 800) {
      if (use[1]) continue;
      ret++;
      use[1] = true;
    } else if (ai < 1200) {
      if (use[2]) continue;
      ret++;
      use[2] = true;
    } else if (ai < 1600) {
      if (use[3]) continue;
      ret++;
      use[3] = true;
    } else if (ai < 2000) {
      if (use[4]) continue;
      ret++;
      use[4] = true;
    } else if (ai < 2400) {
      if (use[5]) continue;
      ret++;
      use[5] = true;
    } else if (ai < 2800) {
      if (use[6]) continue;
      ret++;
      use[6] = true;
    } else if (ai < 3200) {
      if (use[7]) continue;
      ret++;
      use[7] = true;
    } else {
      all++;
    }
  }
  int r1 = ret, r2 = ret + all;
  if (r1 == 0) r1 = 1;
  if (r2 > 8) r2 = 8;
  cout << r1 << " " << r2 << endl;
  return 0;
}
