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