#include <bits/stdc++.h>
using namespace std;
int main() {
  cin.tie(0);
  ios_base::sync_with_stdio(false);
  int N;
  cin >> N;
  int a[N];
  for (int i = 0; i < N; i++) cin >> a[i];
  int color[9];
  memset(color, 0, sizeof color);
  int colors = 0;
  for (int i = 0; i < N; i++) {
    if (color[a[i] / 400] == 0 && a[i] <= 3199) colors++;
    color[a[i] / 400]++;
  }
  int maxcolor, mincolor;
  mincolor = max(colors, 1);
  maxcolor = colors + color[8];
  cout << mincolor << " " << maxcolor << endl;
}
