#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a = 0;
  int ans[8] = {};
  cin >> n;
  for (int i = 0; i < n; i++) {
    int aa;
    cin >> aa;
    if (aa < 3200)
      ans[aa / 400] = 1;
    else
      a++;
  }
  int anss = 0;
  for (int i = 0; i < 8; i++)
    if (ans[i]) anss++;
  if (anss == 0) {
    if (a > 8) a = 8;
    cout << 1 << " " << a << endl;
  } else {
    int s = a + anss;
    if (s > 8) s = 8;
    cout << anss << " " << s << endl;
  }
  return 0;
}
