#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e9, MOD = 1e9 + 7;
const double EPS = 1e-9, PI = 3.141592653589793;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  long long n, a[101], ans1 = 0, ans2, flag1, flag2, flag3, flag4, flag5, flag6,
                       flag7, flag8, num = 0;
  cin >> n;
  for (long long i = 0; i < n; i++) cin >> a[i];
  flag1 = flag2 = flag3 = flag4 = flag5 = flag6 = flag7 = flag8 = 0;
  for (long long i = 0; i < n; i++) {
    if (a[i] < 400) {
      if (flag1 == 0) {
        ans1++;
        flag1++;
      }
    } else if (a[i] < 800) {
      if (flag2 == 0) {
        ans1++;
        flag2++;
      }
    } else if (a[i] < 1200) {
      if (flag3 == 0) {
        ans1++;
        flag3++;
      }
    } else if (a[i] < 1600) {
      if (flag4 == 0) {
        ans1++;
        flag4++;
      }
    } else if (a[i] < 2000) {
      if (flag5 == 0) {
        ans1++;
        flag5++;
      }
    } else if (a[i] < 2400) {
      if (flag6 == 0) {
        ans1++;
        flag6++;
      }
    } else if (a[i] < 2800) {
      if (flag7 == 0) {
        ans1++;
        flag7++;
      }
    } else if (a[i] < 3200) {
      if (flag8 == 0) {
        ans1++;
        flag8++;
      }
    } else
      num++;
  }
  if (num == 0)
    ans2 = ans1;
  else
    ans2 = ans1 + num;
  cout << ans1 << ' ' << ans2 << "\n";
  return 0;
}
