#include <bits/stdc++.h>
using namespace std;
using ll = long long;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
int main() {
  ios::sync_with_stdio(false);
  const vector<int> clr_idx = {0, 400, 800, 1200, 1600, 2000, 2400, 2800, 3200};
  int n;
  cin >> n;
  set<int> clr_lst;
  int over_red_num = 0;
  for (int i = 0; i < (n); ++i) {
    int a;
    cin >> a;
    for (int j = 0; j < (clr_idx.size() + 1); ++j) {
      if (j == clr_idx.size()) {
        over_red_num += 1;
        break;
      }
      if (a < clr_idx[j + 1]) {
        clr_lst.insert(j);
        break;
      }
    }
  }
  int ans_min = clr_lst.size();
  int ans_max = ans_min + over_red_num;
  if (ans_max > clr_idx.size() - 1) ans_max = clr_idx.size() - 1;
  cout << ans_min << " " << ans_max << endl;
}
