#include <bits/stdc++.h>
const int MOD = 1000000007;
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  int color[13] = {0};
  int count = 0, free = 0;
  int minans = 0, maxans = 0;
  for (int(i) = 0; (i) < (n); (i)++) {
    cin >> a[i];
    a[i] /= 400;
  }
  for (int(i) = 0; (i) < (n); (i)++) {
    if (color[a[i]] == 0 && a[i] <= 7) {
      color[a[i]]++;
      count++;
    }
    if (a[i] > 7) {
      free++;
    }
  }
  minans = count;
  maxans = count + free;
  cout << minans << " " << maxans << endl;
  return 0;
}
