#include <bits/stdc++.h>
using namespace std;
bool b[8];
int main() {
  int n;
  cin >> n;
  int c = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a >= 3200)
      c++;
    else
      b[a / 400] = true;
  }
  int d = c;
  for (int i = 0; i < 8; i++) {
    if (b[i] == true) c++;
  }
  cout << c - d << " " << min(8, c) << endl;
  return 0;
}
