#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int i;
  int color[9] = {};
  for (i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] < 3200)
      color[a[i] / 400]++;
    else
      color[8]++;
  }
  int cnt = 0;
  for (i = 0; i <= 7; i++) {
    if (color[i] > 0) cnt++;
  }
  int maxx = min(8, cnt + color[8]);
  int minn = max(1, cnt);
  cout << minn << " " << maxx;
}
