#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long long> a(n);
  for (int i = 0; i < (int)(n); i++) cin >> a[i];
  bool hai = false, tya = false, green = false, mizu = false, ao = false,
       ki = false, dai = false, red = false;
  int free = 0;
  int count = 0;
  for (int i = 0; i < (int)(n); i++) {
    if (a[i] < 400)
      hai++;
    else if (a[i] < 800) {
      if (!tya) {
        count++;
        tya = true;
      }
    } else if (a[i] < 1200) {
      if (!green) {
        count++;
        green = true;
      }
    } else if (a[i] < 1600) {
      if (!mizu) {
        count++;
        mizu = true;
      }
    } else if (a[i] < 2000) {
      if (!ao) {
        count++;
        ao = true;
      }
    } else if (a[i] < 2400) {
      if (!ki) {
        count++;
        ki = true;
      }
    } else if (a[i] < 2800) {
      if (!dai) {
        count++;
        dai = true;
      }
    } else if (a[i] < 3200) {
      if (!red) {
        count++;
        red = true;
      }
    } else
      free++;
  }
  int max1 = min(8, count + free);
  int min1 = 0;
  if (count == 0)
    min1 = 1;
  else {
    min1 = count;
  }
  cout << min1 << " " << max1 << endl;
  return 0;
}
