#include <bits/stdc++.h>
using namespace std;
const int N = 1111;
int n;
int a[N];
int rate[N];
int res1 = 0;
int res2 = 0;
int geti(int k) {
  if (k >= 1 && k <= 399) {
    return 1;
  }
  if (k <= 799) return 2;
  if (k <= 1199) {
    return 3;
  }
  if (k <= 1599) {
    return 4;
  }
  if (k <= 1999) {
    return 5;
  }
  if (k <= 2399) {
    return 6;
  }
  if (k <= 2799) {
    return 7;
  }
  if (k <= 3199)
    return 8;
  else
    return 9;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n; i++) {
    rate[geti(a[i])]++;
  }
  for (int i = 1; i <= 10; i++) {
    if (i < 9 && rate[i] > 0) {
      res1++;
      res2++;
    } else if (i == 9 && rate[i] > 0) {
      res2 += rate[i];
    }
  }
  cout << res1 << " " << res2 << endl;
  return 0;
}
