#include <bits/stdc++.h>
using namespace std;
long long mod = 1e09;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n, cl;
  cin >> n;
  int a[n];
  map<int, int> m;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    cl = a[i] / 400;
    if (cl >= 8) cl = 8;
    m[cl]++;
  }
  int mn = 0, mx;
  for (int i = 0; i < m.size(); i++) {
    if (m[i] != 0 && i != 8) mn++;
  }
  int plus = mn + m[8];
  mx = min(8, plus);
  cout << mn << " " << mx << endl;
}
