#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 100, INDEX = 1;
int n, a[MAX_N + INDEX], cnt[9];
int ansMin = 0, ansMax = 0;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie();
  cout.tie();
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i <= 8; i++) {
    cnt[i] = 0;
  }
  for (int i = 1; i <= n; i++) {
    cnt[min(8, a[i] / 400)]++;
  }
  for (int i = 0; i < 8; i++) {
    if (cnt[i] > 0) {
      ansMin++;
    }
  }
  ansMin = max(1, ansMin);
  ansMax = ansMin + cnt[8];
  cout << ansMin << ' ' << ansMax << endl;
  return 0;
}
