#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  int a;
  int count = 0, free = 0;
  int idx[100] = {0};
  for (int(i) = 0; (i) < (n); ++(i)) {
    cin >> a;
    if (a >= 3200)
      free++;
    else if (idx[a / 400] == 0)
      count++, idx[a / 400] = 1;
  }
  cout << count << " " << count + free << endl;
  return 0;
}
