#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  vector<int32_t> cnt(9, 0);
  int n;
  cin >> n;
  int a;
  for (int i = 0; i < n; ++i) {
    cin >> a;
    if (a >= 3200) {
      ++cnt[8];
    } else {
      ++cnt[a / 400];
    }
  }
  int sum = 0;
  for (int i = 0; i < 8; ++i) {
    if (cnt[i] > 0) {
      ++sum;
    }
  }
  int ansm = sum;
  int ansM = sum;
  if (sum < 8 && cnt[8] > 0) {
    ansM = ((8) > (ansM + cnt[8]) ? (ansM + cnt[8]) : (8));
    ansm = ((1) < (ansm) ? (ansm) : (1));
  }
  cout << ansm << " " << ansM << "\n";
  return 0;
}
