#include <bits/stdc++.h>
using namespace std;
const long long MOD = (1e+9) + 7;
const long long INF = (long long)1000000007 * 1000000007;
const long double eps = 1e-11;
const long double pi = acos(-1.0);
int main() {
  int n;
  cin >> n;
  int cnt[8] = {};
  int rest = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    for (int j = 0; j < 8; j++) {
      if (a < 400 * (j + 1)) {
        cnt[j]++;
        break;
      }
      if (j == 7) rest++;
    }
  }
  int mi = 0;
  for (int i = 0; i < 8; i++) {
    if (cnt[i]) mi++;
  }
  int ma = mi + rest;
  cout << mi << " " << ma << endl;
  return 0;
}
