#include <bits/stdc++.h>
using namespace std;
int n;
int a[200];
int colors[9];
int main() {
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] >= 3200)
      colors[8]++;
    else
      colors[a[i] / 400]++;
  }
  int min = 0;
  for (long long i = 0; i < 8; i++) {
    if (colors[i] != 0) min++;
  }
  int max;
  max = min + colors[8];
  cout << min << ' ' << max << endl;
}
