#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  bool flag[9] = {false};
  int ans_min = 0;
  int ans_max = 0;
  for (int i = 0; i < n; i++) {
    if (flag[0] == false && a[i] >= 1 && a[i] <= 399) {
      flag[0] = true;
      ans_min++;
      ans_max++;
    } else if (flag[1] == false && a[i] >= 400 && a[i] <= 799) {
      flag[1] = true;
      ans_min++;
      ans_max++;
    } else if (flag[2] == false && a[i] >= 800 && a[i] <= 1199) {
      flag[2] = true;
      ans_min++;
      ans_max++;
    } else if (flag[3] == false && a[i] >= 1200 && a[i] <= 1599) {
      flag[3] = true;
      ans_min++;
      ans_max++;
    } else if (flag[4] == false && a[i] >= 1600 && a[i] <= 1999) {
      flag[4] = true;
      ans_min++;
      ans_max++;
    } else if (flag[5] == false && a[i] >= 2000 && a[i] <= 2399) {
      flag[5] = true;
      ans_min++;
      ans_max++;
    } else if (flag[6] == false && a[i] >= 2400 && a[i] <= 2799) {
      flag[6] = true;
      ans_min++;
      ans_max++;
    } else if (flag[7] == false && a[i] >= 2800 && a[i] <= 3199) {
      flag[7] = true;
      ans_min++;
      ans_max++;
    } else if (a[i] >= 3200) {
      if (flag[8] == false) {
        flag[8] = true;
        ans_min++;
        ans_max++;
      } else {
        ans_max++;
      }
    }
  }
  cout << ans_min << " " << ans_max << endl;
}
