#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  int a[100];
  map<int, int> mp;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    if (a[i] <= 399) {
      mp[0]++;
    } else if (a[i] <= 799) {
      mp[1]++;
    } else if (a[i] <= 1199) {
      mp[2]++;
    } else if (a[i] <= 1599) {
      mp[3]++;
    } else if (a[i] <= 1999) {
      mp[4]++;
    } else if (a[i] <= 2399) {
      mp[5]++;
    } else if (a[i] <= 2799) {
      mp[6]++;
    } else if (a[i] <= 3199) {
      mp[7]++;
    } else {
      mp[8]++;
    }
  }
  int min = 0;
  for (int i = 0; i < 8; i++) {
    if (mp[i] != 0) {
      min++;
    }
  }
  int red = 0;
  if (mp.size() != 8) {
    red = mp[8];
  }
  cout << min << " " << min + red << endl;
}
