#include <bits/stdc++.h>
using namespace std;
long long sub_mod(long long a, long long b, long long x) {
  long long tmp = (a - b) % x;
  if (tmp < 0) tmp += x;
  return tmp;
}
int dx[] = {0, 1, 0, -1};
int dy[] = {-1, 0, 1, 0};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> cnt(20, 0);
  int colorful = 0;
  for (int i = 0; i < n; i++) {
    int rate;
    cin >> rate;
    cnt[rate / 400] = 1;
    if (rate / 400 >= 8) colorful++;
  }
  int sum = accumulate(cnt.begin(), cnt.begin() + 8, 0);
  cout << sum + (int)(colorful > 0) << " " << sum + colorful << endl;
}
