#include <bits/stdc++.h>
using ull = unsigned long long;
using ll = long long;
using namespace std;
int main(void) {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  int colors[9];
  for (int i = 0; i < 9; ++i) {
    colors[i] = 0;
  }
  for (auto ai : a) {
    if (ai >= 3200) {
      ai = 3200;
    }
    colors[ai / 400]++;
  }
  int ans_min = 0, ans_max = 0;
  for (int i = 0; i < 9; ++i) {
    if (i == 8) {
      ans_max = ans_min + colors[i];
    } else {
      if (colors[i]) {
        ans_min++;
      }
    }
  }
  cout << ans_min << " " << ans_max << endl;
  return 0;
}
