#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  bool rate[8] = {};
  int stgr_cnt = 0;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    a /= 400;
    if (a >= 8)
      stgr_cnt++;
    else
      rate[a] = true;
  }
  int cnt_min = 0;
  int cnt_max = 0;
  for (int i = 0; i < 8; ++i) {
    if (rate[i] == true)
      cnt_min++;
    else
      cnt_max++;
  }
  cnt_max = min(cnt_max, stgr_cnt);
  cnt_max += cnt_min;
  cout << cnt_min << " " << cnt_max << "\n";
  return 0;
}
