#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e17L;
const int inf = 0x3f3f3f3f;
const int maxn = 1e5 + 5;
const int Mod = 1e9 + 7;
int n, a[maxn], color[maxn], pre[maxn];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  for (int i = 1; i <= n; i++) {
    int t = a[i] / 400 + 1;
    if (t == 9)
      color[t]++;
    else if (color[t] == 0)
      color[t]++;
  }
  for (int i = 1; i <= 10; i++) pre[i] = pre[i - 1] + color[i];
  cout << pre[8] << " " << pre[9] << endl;
  return 0;
}
