#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<int> a;
  int N;
  int b;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> b;
    a.push_back(b);
  }
  sort(a.begin(), a.end());
  int count1 = 1, count2 = 0;
  for (int i = 1; i < N; i++) {
    if (a[i - 1] <= 399 && a[i] >= 400 && a[i] < 3200) {
      count1++;
    } else if (a[i - 1] <= 799 && a[i] >= 800 && a[i] < 3200) {
      count1++;
    } else if (a[i - 1] <= 1199 && a[i] >= 1200 && a[i] < 3200) {
      count1++;
    } else if (a[i - 1] <= 1599 && a[i] >= 1600 && a[i] < 3200) {
      count1++;
    } else if (a[i - 1] <= 1999 && a[i] >= 2000 && a[i] < 3200) {
      count1++;
    } else if (a[i - 1] <= 2399 && a[i] >= 2400 && a[i] < 3200) {
      count1++;
    } else if (a[i - 1] <= 2799 && a[i] >= 2800 && a[i] < 3200) {
      count1++;
    }
    if (a[i] >= 3200) {
      count2++;
    }
  }
  if (count2 == 0) {
    count2 = count1;
  } else {
    count2 += count1;
    if (count2 > 8) {
      count2 = 8;
    }
  }
  cout << min(count1, count2) << " " << max(count1, count2) << endl;
}
