#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  ll n;
  cin >> n;
  ll arr[9] = {0};
  for (ll i = 0; i < n; ++i) {
    ll tmp;
    cin >> tmp;
    if (tmp <= 399) {
      arr[0]++;
    } else if (tmp <= 799) {
      arr[1]++;
    } else if (tmp <= 1199) {
      arr[2]++;
    } else if (tmp <= 1599) {
      arr[3]++;
    } else if (tmp <= 1999) {
      arr[4]++;
    } else if (tmp <= 2399) {
      arr[5]++;
    } else if (tmp <= 2799) {
      arr[6]++;
    } else if (tmp <= 3199) {
      arr[7]++;
    } else {
      arr[8]++;
    }
  }
  ll mini = 0, maxi = 0;
  for (ll i = 0; i < 8; ++i) {
    if (arr[i] != 0) {
      mini++;
    }
  }
  cout << mini << " " << arr[8] + mini;
  return 0;
}
