#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int ans[9], ans2[9];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < 9; i++) {
    ans[i] = 0;
    ans2[i] = 0;
  }
  sort(a, a + n);
  for (int i = 0; i < n; i++) {
    if (a[i] >= 1 && a[i] < 400) {
      ans[0] = 1;
      ans2[0] = 1;
    }
    if (a[i] >= 400 && a[i] < 800) {
      ans[1] = 1;
      ans2[1] = 1;
    }
    if (a[i] >= 800 && a[i] < 1200) {
      ans[2] = 1;
      ans2[2] = 1;
    }
    if (a[i] >= 1200 && a[i] < 1600) {
      ans[3] = 1;
      ans2[3] = 1;
    }
    if (a[i] >= 1600 && a[i] < 2000) {
      ans[4] = 1;
      ans2[4] = 1;
    }
    if (a[i] >= 2000 && a[i] < 2400) {
      ans[5] = 1;
      ans2[5] = 1;
    }
    if (a[i] >= 2400 && a[i] < 2800) {
      ans[6] = 1;
      ans2[6] = 1;
    }
    if (a[i] >= 2800 && a[i] < 3200) {
      ans[7] = 1;
      ans2[7] = 1;
    }
    if (a[i] >= 3200) {
      bool flag = false;
      for (int i = 0; i < 9; i++) {
        if (ans[i] == 0) {
          ans[i] = 1;
          break;
        }
      }
      for (int i = 0; i < 9; i++) {
        if (ans[i] == 1) {
          ans[i] = 1;
          flag = true;
          break;
        }
      }
    }
  }
  int cnt = 0, cnt2 = 0;
  for (int i = 0; i < 9; i++) {
    if (ans[i] == 1) cnt++;
    if (ans2[i] == 1) cnt2++;
  }
  cout << cnt2 << ' ' << cnt << endl;
}
