#include <bits/stdc++.h>
using namespace std;
int main() {
  bool flag[8] = {};
  int N, v, a;
  int other = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a;
    for (int i = 0; i < 8; i++) {
      if (a < 400 * (i + 1)) {
        flag[i] = true;
        break;
      }
    }
    if (a >= 3200) other++;
  }
  v = 0;
  for (int i = 0; i < 8; i++) {
    if (flag[i]) v++;
  }
  cout << max(v, other) << " " << v + other << endl;
  return 0;
}
