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