#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
void _IOS() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin.sync_with_stdio(0);
}
int sx, sy, tx, ty;
struct threeElements {
  int _1st, _2nd, _3rd;
};
int n, m;
int color[14], a[1000];
int main() {
  _IOS();
  int a[1000];
  cin >> n;
  long long mn = 0, mx = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    int q = a[i] / 400;
    color[q]++;
  }
  for (int i = 0; i < 8; i++) {
    if (color[i]) mn++;
  }
  for (int i = 8; i < 13; i++)
    if (color[i]) mx += color[i];
  if (mn == 0) {
    cout << 1 << " " << mx;
    return 0;
  }
  cout << mn << " ";
  if (mn + mx >= 8)
    cout << 8;
  else
    cout << mn + mx;
}
