#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  vector<int> cnt(9, 0);
  int count = 0;
  int maxcount = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 400) {
      cnt[0]++;
    } else if (a[i] < 800) {
      cnt[1]++;
    } else if (a[i] < 1200) {
      cnt[2]++;
    } else if (a[i] < 1600) {
      cnt[3]++;
    } else if (a[i] < 2000) {
      cnt[4]++;
    } else if (a[i] < 2400) {
      cnt[5]++;
    } else if (a[i] < 2800) {
      cnt[6]++;
    } else if (a[i] < 3200) {
      cnt[7]++;
    } else {
      cnt[8]++;
    }
  }
  for (int i = 0; i <= 7; i++) {
    if (cnt[i] != 0) {
      count++;
    }
  }
  maxcount = count;
  for (int i = 0; i < cnt[8]; i++) {
    maxcount++;
  }
  if (maxcount >= 8) {
    cout << count << " " << 8 << endl;
  } else {
    cout << count << " " << maxcount << endl;
  }
}
