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