#include <bits/stdc++.h>
const int MOD = 1e9 + 7;
const int dx[] = {1, -1, 0, 0};
const int dy[] = {0, 0, 1, -1};
using namespace std;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n, x, cnt = 0;
  cin >> n;
  int min_ans = 0, max_ans = 0;
  vector<int> vec(8, 0);
  for (int i = 0; i < n; i++) {
    cin >> x;
    int tmp = x / 400;
    if (x < 3200)
      vec[tmp]++;
    else
      cnt++;
  }
  bool flag = true;
  for (int i = 0; i < vec.size(); i++) {
    if (vec[i] > 0) min_ans++;
  }
  if (min_ans == 0) min_ans = 1;
  while (cnt > 0) {
    if (flag == false) break;
    flag = false;
    for (int i = 0; i < vec.size(); i++) {
      if (vec[i] == 0) {
        vec[i]++;
        cnt--;
        if (cnt <= 0) {
          flag = false;
          break;
        }
        flag = true;
      }
    }
  }
  for (int i = 0; i < vec.size(); i++) {
    if (vec[i] > 0) max_ans++;
  }
  cout << min_ans << " " << max_ans << endl;
  return 0;
}
