#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int c1 = 0, c2 = 0, c3 = 0, c4 = 0, c5 = 0, c6 = 0, c7 = 0, c8 = 0, god = 0;
  for (int i = 0; i < n; i++) {
    if (a[i] <= 399) {
      c1++;
    } else if (a[i] >= 400 && a[i] <= 799) {
      c2++;
    } else if (a[i] >= 800 && a[i] <= 1199) {
      c3++;
    } else if (a[i] >= 1200 && a[i] <= 1599) {
      c4++;
    } else if (a[i] >= 1600 && a[i] <= 1999) {
      c5++;
    } else if (a[i] >= 2000 && a[i] <= 2399) {
      c6++;
    } else if (a[i] >= 2400 && a[i] <= 2799) {
      c7++;
    } else if (a[i] >= 2800 && a[i] <= 3199) {
      c8++;
    } else if (a[i] >= 3200) {
      god++;
    }
  }
  int min = 0, max = 0;
  if (c1 != 0) {
    min++;
  }
  if (c2 != 0) {
    min++;
  }
  if (c3 != 0) {
    min++;
  }
  if (c4 != 0) {
    min++;
  }
  if (c5 != 0) {
    min++;
  }
  if (c6 != 0) {
    min++;
  }
  if (c7 != 0) {
    min++;
  }
  if (c8 != 0) {
    min++;
  }
  max = min + god;
  if (min == 0) {
    min++;
  }
  if (max > 8) {
    max = 8;
  }
  cout << min << ' ' << max << endl;
}
